@nylas/web-elements 1.1.0-canary.16 → 1.1.0-canary.17

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 (672) hide show
  1. package/dist/cjs/add-circle-icon.cjs.entry.js +1 -1
  2. package/dist/cjs/add-circle-icon_2.cjs.entry.js +2 -2
  3. package/dist/cjs/archive-icon.cjs.entry.js +1 -1
  4. package/dist/cjs/archive-icon_7.cjs.entry.js +7 -7
  5. package/dist/cjs/arrow-icon.cjs.entry.js +1 -1
  6. package/dist/cjs/bold-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/bold-icon_3.cjs.entry.js +3 -3
  8. package/dist/cjs/button-component.cjs.entry.js +1 -1
  9. package/dist/cjs/calendar-cancel-icon.cjs.entry.js +1 -1
  10. package/dist/cjs/calendar-check-icon.cjs.entry.js +1 -1
  11. package/dist/cjs/calendar-check-icon_2.cjs.entry.js +2 -2
  12. package/dist/cjs/calendar-icon.cjs.entry.js +1 -1
  13. package/dist/cjs/calendar-info-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/{calendar-info-icon_27.cjs.entry.js → calendar-info-icon_28.cjs.entry.js} +300 -412
  15. package/dist/cjs/calendar-info-icon_28.cjs.entry.js.map +1 -0
  16. package/dist/cjs/calendar-patterns-icon.cjs.entry.js +1 -1
  17. package/dist/cjs/checkbox-component.cjs.entry.js +1 -1
  18. package/dist/cjs/checkbox-component.cjs.entry.js.map +1 -1
  19. package/dist/cjs/checkmark-circle-icon.cjs.entry.js +1 -1
  20. package/dist/cjs/chevron-icon.cjs.entry.js +1 -1
  21. package/dist/cjs/chevron-icon_3.cjs.entry.js +4 -4
  22. package/dist/cjs/clock-icon.cjs.entry.js +1 -1
  23. package/dist/cjs/clock-icon_2.cjs.entry.js +2 -2
  24. package/dist/cjs/close-icon.cjs.entry.js +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 +7 -7
  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 +96 -78
  33. package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
  34. package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
  35. package/dist/cjs/index-7af03e3f.js +10 -10
  36. package/dist/cjs/index-c14ea8f5.js +18 -14
  37. package/dist/cjs/info-icon.cjs.entry.js +1 -1
  38. package/dist/cjs/info-icon_2.cjs.entry.js +2 -2
  39. package/dist/cjs/input-component.cjs.entry.js +1 -1
  40. package/dist/cjs/input-dropdown.cjs.entry.js +13 -3
  41. package/dist/cjs/input-dropdown.cjs.entry.js.map +1 -1
  42. package/dist/cjs/input-dropdown_2.cjs.entry.js +14 -4
  43. package/dist/cjs/input-dropdown_2.cjs.entry.js.map +1 -1
  44. package/dist/cjs/italic-icon.cjs.entry.js +1 -1
  45. package/dist/cjs/loader.cjs.js +1 -1
  46. package/dist/cjs/loading-icon.cjs.entry.js +1 -1
  47. package/dist/cjs/location-icon.cjs.entry.js +1 -1
  48. package/dist/cjs/location-off-icon.cjs.entry.js +1 -1
  49. package/dist/cjs/microsoft-logo-icon.cjs.entry.js +1 -1
  50. package/dist/cjs/multi-select-dropdown.cjs.entry.js +2 -2
  51. package/dist/cjs/nylas-additional-participants.cjs.entry.js +16 -12
  52. package/dist/cjs/nylas-additional-participants.cjs.entry.js.map +1 -1
  53. package/dist/cjs/nylas-availability-picker.cjs.entry.js +27 -16
  54. package/dist/cjs/nylas-availability-picker.cjs.entry.js.map +1 -1
  55. package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js +4 -4
  56. package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +1 -1
  57. package/dist/cjs/nylas-cancellation-policy.cjs.entry.js +1 -1
  58. package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +1 -1
  59. package/dist/cjs/nylas-composer.cjs.entry.js +1 -1
  60. package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js +1 -1
  61. package/dist/cjs/nylas-customize-booking-settings.cjs.entry.js +1 -1
  62. package/dist/cjs/nylas-editor-tabs.cjs.entry.js +94 -76
  63. package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
  64. package/dist/cjs/nylas-event-info.cjs.entry.js +1 -1
  65. package/dist/cjs/nylas-event-limits.cjs.entry.js +1 -1
  66. package/dist/cjs/nylas-event-location.cjs.entry.js +3 -3
  67. package/dist/cjs/nylas-form-card.cjs.entry.js +1 -1
  68. package/dist/cjs/nylas-if-state.cjs.entry.js +1 -1
  69. package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js +1 -1
  70. package/dist/cjs/nylas-list-folders.cjs.entry.js +1 -1
  71. package/dist/cjs/nylas-list-threads.cjs.entry.js +1 -1
  72. package/dist/cjs/nylas-login.cjs.entry.js +1 -1
  73. package/dist/cjs/nylas-logo.cjs.entry.js +1 -1
  74. package/dist/cjs/nylas-mailbox-toolbar-button.cjs.entry.js +1 -1
  75. package/dist/cjs/nylas-mailbox.cjs.entry.js +1 -1
  76. package/dist/cjs/nylas-min-booking-notice.cjs.entry.js +1 -1
  77. package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js +1 -1
  78. package/dist/cjs/nylas-notification.cjs.entry.js +1 -1
  79. package/dist/cjs/nylas-participants-custom-availability.cjs.entry.js +142 -0
  80. package/dist/cjs/nylas-participants-custom-availability.cjs.entry.js.map +1 -0
  81. package/dist/cjs/nylas-provider.cjs.entry.js +1 -1
  82. package/dist/cjs/nylas-summarize-message-button.cjs.entry.js +2 -2
  83. package/dist/cjs/nylas-threads-refresh.cjs.entry.js +2 -2
  84. package/dist/cjs/nylas-threads-search.cjs.entry.js +1 -1
  85. package/dist/cjs/nylas-time-window-picker.cjs.entry.js +1 -1
  86. package/dist/cjs/nylas-timeslot-interval.cjs.entry.js +2 -2
  87. package/dist/cjs/nylas-view-email.cjs.entry.js +1 -1
  88. package/dist/cjs/nylas-view-thread.cjs.entry.js +1 -1
  89. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  90. package/dist/cjs/people-icon.cjs.entry.js +1 -1
  91. package/dist/cjs/person-icon.cjs.entry.js +1 -1
  92. package/dist/cjs/play-icon.cjs.entry.js +1 -1
  93. package/dist/cjs/play-icon_2.cjs.entry.js +2 -2
  94. package/dist/cjs/radio-button-group.cjs.entry.js +1 -1
  95. package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
  96. package/dist/cjs/reply-all-icon.cjs.entry.js +1 -1
  97. package/dist/cjs/reply-icon.cjs.entry.js +1 -1
  98. package/dist/cjs/search-icon.cjs.entry.js +1 -1
  99. package/dist/cjs/select-dropdown.cjs.entry.js +2 -2
  100. package/dist/cjs/sent-icon.cjs.entry.js +1 -1
  101. package/dist/cjs/spam-icon.cjs.entry.js +1 -1
  102. package/dist/cjs/star-icon.cjs.entry.js +1 -1
  103. package/dist/cjs/stop-icon.cjs.entry.js +1 -1
  104. package/dist/cjs/textarea-component.cjs.entry.js +1 -1
  105. package/dist/cjs/time-period-selector.cjs.entry.js +1 -1
  106. package/dist/cjs/toggle-switch.cjs.entry.js +1 -1
  107. package/dist/cjs/toggle-switch.cjs.entry.js.map +1 -1
  108. package/dist/cjs/tooltip-component.cjs.entry.js +1 -1
  109. package/dist/cjs/translate-icon.cjs.entry.js +1 -1
  110. package/dist/cjs/trash-icon.cjs.entry.js +1 -1
  111. package/dist/cjs/underline-icon.cjs.entry.js +1 -1
  112. package/dist/cjs/warning-icon.cjs.entry.js +1 -1
  113. package/dist/collection/collection-manifest.json +1 -0
  114. package/dist/collection/common/icons/add-circle.js +1 -1
  115. package/dist/collection/common/icons/archive.js +1 -1
  116. package/dist/collection/common/icons/arrow.js +1 -1
  117. package/dist/collection/common/icons/bold.js +1 -1
  118. package/dist/collection/common/icons/calendar-cancel.js +1 -1
  119. package/dist/collection/common/icons/calendar-check.js +1 -1
  120. package/dist/collection/common/icons/calendar-info.js +1 -1
  121. package/dist/collection/common/icons/calendar-patterns.js +1 -1
  122. package/dist/collection/common/icons/calendar.js +1 -1
  123. package/dist/collection/common/icons/checkmark-circle.js +1 -1
  124. package/dist/collection/common/icons/chevron.js +1 -1
  125. package/dist/collection/common/icons/clock.js +1 -1
  126. package/dist/collection/common/icons/close.js +1 -1
  127. package/dist/collection/common/icons/document-refresh.js +1 -1
  128. package/dist/collection/common/icons/flow.js +1 -1
  129. package/dist/collection/common/icons/folder.js +1 -1
  130. package/dist/collection/common/icons/forward.js +1 -1
  131. package/dist/collection/common/icons/globe.js +1 -1
  132. package/dist/collection/common/icons/google-logo.js +1 -1
  133. package/dist/collection/common/icons/inbox.js +1 -1
  134. package/dist/collection/common/icons/info.js +1 -1
  135. package/dist/collection/common/icons/italic.js +1 -1
  136. package/dist/collection/common/icons/loading.js +1 -1
  137. package/dist/collection/common/icons/location-off.js +1 -1
  138. package/dist/collection/common/icons/location.js +1 -1
  139. package/dist/collection/common/icons/microsoft-logo.js +1 -1
  140. package/dist/collection/common/icons/nylas-logo.js +1 -1
  141. package/dist/collection/common/icons/people.js +1 -1
  142. package/dist/collection/common/icons/person.js +1 -1
  143. package/dist/collection/common/icons/play.js +1 -1
  144. package/dist/collection/common/icons/refresh.js +1 -1
  145. package/dist/collection/common/icons/reply-all.js +1 -1
  146. package/dist/collection/common/icons/reply.js +1 -1
  147. package/dist/collection/common/icons/search.js +1 -1
  148. package/dist/collection/common/icons/sent.js +1 -1
  149. package/dist/collection/common/icons/spam.js +1 -1
  150. package/dist/collection/common/icons/star.js +1 -1
  151. package/dist/collection/common/icons/stop.js +1 -1
  152. package/dist/collection/common/icons/translate.js +1 -1
  153. package/dist/collection/common/icons/trash.js +1 -1
  154. package/dist/collection/common/icons/underline.js +1 -1
  155. package/dist/collection/common/icons/warning.js +1 -1
  156. package/dist/collection/components/design-system/button-component/button-component.js +1 -1
  157. package/dist/collection/components/design-system/checkbox-component/checkbox-component.js +1 -1
  158. package/dist/collection/components/design-system/checkbox-component/checkbox-component.js.map +1 -1
  159. package/dist/collection/components/design-system/input-component/input-component.js +1 -1
  160. package/dist/collection/components/design-system/input-dropdown/input-dropdown.js +31 -3
  161. package/dist/collection/components/design-system/input-dropdown/input-dropdown.js.map +1 -1
  162. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +2 -2
  163. package/dist/collection/components/design-system/radio-button-group/radio-button-group.js +1 -1
  164. package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +2 -2
  165. package/dist/collection/components/design-system/textarea-component/textarea-component.js +1 -1
  166. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
  167. package/dist/collection/components/design-system/toggle-switch/toggle-switch.js +1 -1
  168. package/dist/collection/components/design-system/toggle-switch/toggle-switch.js.map +1 -1
  169. package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +1 -1
  170. package/dist/collection/components/mailbox/nylas-composer/nylas-composer.js +1 -1
  171. package/dist/collection/components/mailbox/nylas-list-folders/nylas-list-folders.js +1 -1
  172. package/dist/collection/components/mailbox/nylas-list-threads/nylas-list-threads.js +1 -1
  173. package/dist/collection/components/mailbox/nylas-mailbox/nylas-mailbox.js +1 -1
  174. package/dist/collection/components/mailbox/nylas-mailbox-toolbar-button/nylas-mailbox-toolbar-button.js +1 -1
  175. package/dist/collection/components/mailbox/nylas-summarize-message-button/nylas-summarize-message-button.js +2 -2
  176. package/dist/collection/components/mailbox/nylas-threads-refresh/nylas-threads-refresh.js +2 -2
  177. package/dist/collection/components/mailbox/nylas-threads-search/nylas-threads-search.js +1 -1
  178. package/dist/collection/components/mailbox/nylas-view-email/nylas-view-email.js +1 -1
  179. package/dist/collection/components/mailbox/nylas-view-thread/nylas-view-thread.js +1 -1
  180. package/dist/collection/components/nylas-if-state/nylas-if-state.js +1 -1
  181. package/dist/collection/components/nylas-login/nylas-login.js +1 -1
  182. package/dist/collection/components/nylas-provider/nylas-provider.js +1 -1
  183. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
  184. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
  185. package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
  186. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +33 -12
  187. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
  188. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.css +1 -1
  189. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +48 -25
  190. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js.map +1 -1
  191. package/dist/collection/components/scheduler-editor/nylas-cancellation-policy/nylas-cancellation-policy.js +1 -1
  192. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +1 -1
  193. package/dist/collection/components/scheduler-editor/nylas-customize-booking-settings/nylas-customize-booking-settings.js +1 -1
  194. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +92 -75
  195. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
  196. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js +1 -1
  197. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js.map +1 -1
  198. package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
  199. package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
  200. package/dist/collection/components/scheduler-editor/nylas-event-location/nylas-event-location.js +3 -3
  201. package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
  202. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +1 -1
  203. package/dist/collection/components/scheduler-editor/nylas-min-booking-notice/nylas-min-booking-notice.js +1 -1
  204. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +1 -1
  205. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.css +98 -0
  206. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +219 -0
  207. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js.map +1 -0
  208. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +1 -1
  209. package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
  210. package/dist/collection/components/scheduler-editor/nylas-timeslot-interval/nylas-timeslot-interval.js +2 -2
  211. package/dist/components/add-circle.js +1 -1
  212. package/dist/components/archive.js +1 -1
  213. package/dist/components/arrow.js +1 -1
  214. package/dist/components/bold.js +1 -1
  215. package/dist/components/button-component2.js +1 -1
  216. package/dist/components/calendar-cancel.js +1 -1
  217. package/dist/components/calendar-check.js +1 -1
  218. package/dist/components/calendar-info.js +1 -1
  219. package/dist/components/calendar-patterns.js +1 -1
  220. package/dist/components/calendar.js +1 -1
  221. package/dist/components/checkbox-component2.js +1 -1
  222. package/dist/components/checkbox-component2.js.map +1 -1
  223. package/dist/components/checkmark-circle.js +1 -1
  224. package/dist/components/chevron.js +1 -1
  225. package/dist/components/clock.js +1 -1
  226. package/dist/components/close.js +1 -1
  227. package/dist/components/document-refresh-icon.js +1 -1
  228. package/dist/components/flow.js +1 -1
  229. package/dist/components/folder.js +1 -1
  230. package/dist/components/forward.js +1 -1
  231. package/dist/components/globe.js +1 -1
  232. package/dist/components/google-logo.js +1 -1
  233. package/dist/components/inbox.js +1 -1
  234. package/dist/components/info.js +1 -1
  235. package/dist/components/input-component2.js +1 -1
  236. package/dist/components/input-dropdown2.js +14 -3
  237. package/dist/components/input-dropdown2.js.map +1 -1
  238. package/dist/components/italic.js +1 -1
  239. package/dist/components/loading.js +1 -1
  240. package/dist/components/location-off.js +1 -1
  241. package/dist/components/location.js +1 -1
  242. package/dist/components/microsoft-logo.js +1 -1
  243. package/dist/components/multi-select-dropdown2.js +2 -2
  244. package/dist/components/nylas-additional-participants2.js +17 -13
  245. package/dist/components/nylas-additional-participants2.js.map +1 -1
  246. package/dist/components/nylas-availability-picker2.js +28 -16
  247. package/dist/components/nylas-availability-picker2.js.map +1 -1
  248. package/dist/components/nylas-cancel-booking-form2.js +1 -1
  249. package/dist/components/nylas-cancellation-policy2.js +1 -1
  250. package/dist/components/nylas-cancelled-event-card2.js +1 -1
  251. package/dist/components/nylas-composer2.js +1 -1
  252. package/dist/components/nylas-custom-booking-flow.js +1 -1
  253. package/dist/components/nylas-customize-booking-settings2.js +1 -1
  254. package/dist/components/nylas-editor-tabs2.js +184 -154
  255. package/dist/components/nylas-editor-tabs2.js.map +1 -1
  256. package/dist/components/nylas-event-info2.js +1 -1
  257. package/dist/components/nylas-event-limits2.js +1 -1
  258. package/dist/components/nylas-event-location2.js +3 -3
  259. package/dist/components/nylas-form-card2.js +1 -1
  260. package/dist/components/nylas-if-state.js +1 -1
  261. package/dist/components/nylas-limit-future-bookings2.js +1 -1
  262. package/dist/components/nylas-list-folders.js +1 -1
  263. package/dist/components/nylas-list-threads.js +1 -1
  264. package/dist/components/nylas-login.js +1 -1
  265. package/dist/components/nylas-logo2.js +1 -1
  266. package/dist/components/nylas-mailbox-toolbar-button.js +1 -1
  267. package/dist/components/nylas-mailbox.js +1 -1
  268. package/dist/components/nylas-min-booking-notice2.js +1 -1
  269. package/dist/components/nylas-min-cancellation-notice2.js +1 -1
  270. package/dist/components/nylas-notification2.js +1 -1
  271. package/dist/components/nylas-participants-custom-availability.d.ts +11 -0
  272. package/dist/components/nylas-participants-custom-availability.js +8 -0
  273. package/dist/components/nylas-participants-custom-availability.js.map +1 -0
  274. package/dist/components/nylas-participants-custom-availability2.js +218 -0
  275. package/dist/components/nylas-participants-custom-availability2.js.map +1 -0
  276. package/dist/components/nylas-provider.js +1 -1
  277. package/dist/components/nylas-scheduler-editor.js +100 -88
  278. package/dist/components/nylas-scheduler-editor.js.map +1 -1
  279. package/dist/components/nylas-summarize-message-button2.js +2 -2
  280. package/dist/components/nylas-threads-refresh.js +2 -2
  281. package/dist/components/nylas-threads-search.js +1 -1
  282. package/dist/components/nylas-time-window-picker2.js +1 -1
  283. package/dist/components/nylas-timeslot-interval2.js +2 -2
  284. package/dist/components/nylas-view-email2.js +1 -1
  285. package/dist/components/nylas-view-thread.js +1 -1
  286. package/dist/components/people.js +1 -1
  287. package/dist/components/person.js +1 -1
  288. package/dist/components/play.js +1 -1
  289. package/dist/components/radio-button-group2.js +1 -1
  290. package/dist/components/refresh.js +1 -1
  291. package/dist/components/reply-all.js +1 -1
  292. package/dist/components/reply.js +1 -1
  293. package/dist/components/search.js +1 -1
  294. package/dist/components/select-dropdown2.js +2 -2
  295. package/dist/components/sent.js +1 -1
  296. package/dist/components/spam.js +1 -1
  297. package/dist/components/star.js +1 -1
  298. package/dist/components/stop.js +1 -1
  299. package/dist/components/textarea-component.js +1 -1
  300. package/dist/components/time-period-selector2.js +1 -1
  301. package/dist/components/toggle-switch.js +1 -49
  302. package/dist/components/toggle-switch.js.map +1 -1
  303. package/dist/components/toggle-switch2.js +53 -0
  304. package/dist/components/toggle-switch2.js.map +1 -0
  305. package/dist/components/toolitp-component.js +1 -1
  306. package/dist/components/translate.js +1 -1
  307. package/dist/components/trash.js +1 -1
  308. package/dist/components/underline.js +1 -1
  309. package/dist/components/warning.js +1 -1
  310. package/dist/esm/add-circle-icon.entry.js +1 -1
  311. package/dist/esm/add-circle-icon_2.entry.js +2 -2
  312. package/dist/esm/archive-icon.entry.js +1 -1
  313. package/dist/esm/archive-icon_7.entry.js +7 -7
  314. package/dist/esm/arrow-icon.entry.js +1 -1
  315. package/dist/esm/bold-icon.entry.js +1 -1
  316. package/dist/esm/bold-icon_3.entry.js +3 -3
  317. package/dist/esm/button-component.entry.js +1 -1
  318. package/dist/esm/calendar-cancel-icon.entry.js +1 -1
  319. package/dist/esm/calendar-check-icon.entry.js +1 -1
  320. package/dist/esm/calendar-check-icon_2.entry.js +2 -2
  321. package/dist/esm/calendar-icon.entry.js +1 -1
  322. package/dist/esm/calendar-info-icon.entry.js +1 -1
  323. package/dist/esm/{calendar-info-icon_27.entry.js → calendar-info-icon_28.entry.js} +300 -413
  324. package/dist/esm/calendar-info-icon_28.entry.js.map +1 -0
  325. package/dist/esm/calendar-patterns-icon.entry.js +1 -1
  326. package/dist/esm/checkbox-component.entry.js +1 -1
  327. package/dist/esm/checkbox-component.entry.js.map +1 -1
  328. package/dist/esm/checkmark-circle-icon.entry.js +1 -1
  329. package/dist/esm/chevron-icon.entry.js +1 -1
  330. package/dist/esm/chevron-icon_3.entry.js +4 -4
  331. package/dist/esm/clock-icon.entry.js +1 -1
  332. package/dist/esm/clock-icon_2.entry.js +2 -2
  333. package/dist/esm/close-icon.entry.js +1 -1
  334. package/dist/esm/document-refresh-icon.entry.js +1 -1
  335. package/dist/esm/flow-icon.entry.js +1 -1
  336. package/dist/esm/folder-icon.entry.js +1 -1
  337. package/dist/esm/forward-icon.entry.js +1 -1
  338. package/dist/esm/forward-icon_6.entry.js +7 -7
  339. package/dist/esm/globe-icon.entry.js +1 -1
  340. package/dist/esm/google-logo-icon.entry.js +1 -1
  341. package/dist/esm/google-logo-icon_4.entry.js +96 -78
  342. package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
  343. package/dist/esm/inbox-icon.entry.js +1 -1
  344. package/dist/esm/index-582cfc93.js +18 -14
  345. package/dist/esm/index-7cb0dd3d.js +10 -10
  346. package/dist/esm/{index.es-896126fc.js → index.es-c5a8a1ac.js} +2 -2
  347. package/dist/esm/{index.es-896126fc.js.map → index.es-c5a8a1ac.js.map} +1 -1
  348. package/dist/esm/index.js +2 -2
  349. package/dist/esm/info-icon.entry.js +1 -1
  350. package/dist/esm/info-icon_2.entry.js +2 -2
  351. package/dist/esm/input-component.entry.js +1 -1
  352. package/dist/esm/input-dropdown.entry.js +13 -3
  353. package/dist/esm/input-dropdown.entry.js.map +1 -1
  354. package/dist/esm/input-dropdown_2.entry.js +14 -4
  355. package/dist/esm/input-dropdown_2.entry.js.map +1 -1
  356. package/dist/esm/italic-icon.entry.js +1 -1
  357. package/dist/esm/loader.js +1 -1
  358. package/dist/esm/loading-icon.entry.js +1 -1
  359. package/dist/esm/location-icon.entry.js +1 -1
  360. package/dist/esm/location-off-icon.entry.js +1 -1
  361. package/dist/esm/{mailbox-store-c9b2a4fd.js → mailbox-store-94133e15.js} +3 -3
  362. package/dist/esm/{mailbox-store-c9b2a4fd.js.map → mailbox-store-94133e15.js.map} +1 -1
  363. package/dist/esm/microsoft-logo-icon.entry.js +1 -1
  364. package/dist/esm/multi-select-dropdown.entry.js +3 -3
  365. package/dist/esm/nylas-additional-participants.entry.js +19 -15
  366. package/dist/esm/nylas-additional-participants.entry.js.map +1 -1
  367. package/dist/esm/{nylas-api-request-27e81d64.js → nylas-api-request-5ac7887c.js} +2 -2
  368. package/dist/esm/{nylas-api-request-27e81d64.js.map → nylas-api-request-5ac7887c.js.map} +1 -1
  369. package/dist/esm/nylas-availability-picker.entry.js +29 -18
  370. package/dist/esm/nylas-availability-picker.entry.js.map +1 -1
  371. package/dist/esm/nylas-booked-event-card.entry.js +2 -2
  372. package/dist/esm/nylas-booked-event-card_10.entry.js +4 -4
  373. package/dist/esm/nylas-booking-calendar-picker.entry.js +2 -2
  374. package/dist/esm/nylas-booking-form.entry.js +2 -2
  375. package/dist/esm/nylas-buffer-time.entry.js +2 -2
  376. package/dist/esm/nylas-calendar-picker.entry.js +2 -2
  377. package/dist/esm/nylas-cancel-booking-form.entry.js +3 -3
  378. package/dist/esm/nylas-cancellation-policy.entry.js +3 -3
  379. package/dist/esm/nylas-cancelled-event-card.entry.js +3 -3
  380. package/dist/esm/nylas-composer.entry.js +2 -2
  381. package/dist/esm/nylas-custom-booking-flow.entry.js +3 -3
  382. package/dist/esm/nylas-customize-booking-settings.entry.js +3 -3
  383. package/dist/esm/nylas-date-picker.entry.js +2 -2
  384. package/dist/esm/nylas-editor-tabs.entry.js +96 -78
  385. package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
  386. package/dist/esm/nylas-event-description.entry.js +2 -2
  387. package/dist/esm/nylas-event-duration.entry.js +2 -2
  388. package/dist/esm/nylas-event-info.entry.js +3 -3
  389. package/dist/esm/nylas-event-limits.entry.js +3 -3
  390. package/dist/esm/nylas-event-location.entry.js +5 -5
  391. package/dist/esm/nylas-event-title.entry.js +2 -2
  392. package/dist/esm/nylas-form-card.entry.js +3 -3
  393. package/dist/esm/nylas-if-state.entry.js +3 -3
  394. package/dist/esm/nylas-limit-future-bookings.entry.js +3 -3
  395. package/dist/esm/nylas-list-configurations.entry.js +2 -2
  396. package/dist/esm/nylas-list-folders.entry.js +3 -3
  397. package/dist/esm/nylas-list-threads.entry.js +3 -3
  398. package/dist/esm/nylas-locale-switch.entry.js +2 -2
  399. package/dist/esm/nylas-login.entry.js +3 -3
  400. package/dist/esm/nylas-logo.entry.js +1 -1
  401. package/dist/esm/nylas-mailbox-pagination.entry.js +2 -2
  402. package/dist/esm/nylas-mailbox-toolbar-button.entry.js +3 -3
  403. package/dist/esm/nylas-mailbox.entry.js +4 -4
  404. package/dist/esm/nylas-min-booking-notice.entry.js +3 -3
  405. package/dist/esm/nylas-min-cancellation-notice.entry.js +3 -3
  406. package/dist/esm/nylas-notification.entry.js +2 -2
  407. package/dist/esm/nylas-participants-custom-availability.entry.js +138 -0
  408. package/dist/esm/nylas-participants-custom-availability.entry.js.map +1 -0
  409. package/dist/esm/nylas-provider.entry.js +5 -5
  410. package/dist/esm/nylas-scheduler-editor.entry.js +3 -3
  411. package/dist/esm/nylas-scheduling.entry.js +3 -3
  412. package/dist/esm/nylas-selected-event-card.entry.js +2 -2
  413. package/dist/esm/nylas-summarize-message-button.entry.js +4 -4
  414. package/dist/esm/nylas-threads-refresh.entry.js +4 -4
  415. package/dist/esm/nylas-threads-search.entry.js +3 -3
  416. package/dist/esm/nylas-time-window-picker.entry.js +2 -2
  417. package/dist/esm/nylas-timeslot-interval.entry.js +4 -4
  418. package/dist/esm/nylas-timeslot-picker.entry.js +2 -2
  419. package/dist/esm/nylas-view-email.entry.js +2 -2
  420. package/dist/esm/nylas-view-thread.entry.js +3 -3
  421. package/dist/esm/nylas-web-elements.js +1 -1
  422. package/dist/esm/people-icon.entry.js +1 -1
  423. package/dist/esm/person-icon.entry.js +1 -1
  424. package/dist/esm/play-icon.entry.js +1 -1
  425. package/dist/esm/play-icon_2.entry.js +2 -2
  426. package/dist/esm/radio-button-group.entry.js +1 -1
  427. package/dist/esm/refresh-icon.entry.js +1 -1
  428. package/dist/esm/{register-component-6ae95538.js → register-component-aef40ec4.js} +2 -2
  429. package/dist/esm/{register-component-6ae95538.js.map → register-component-aef40ec4.js.map} +1 -1
  430. package/dist/esm/reply-all-icon.entry.js +1 -1
  431. package/dist/esm/reply-icon.entry.js +1 -1
  432. package/dist/esm/{scheduler-store-17f7f1c8.js → scheduler-store-6c4866d6.js} +2 -2
  433. package/dist/{nylas-web-elements/scheduler-store-17f7f1c8.js.map → esm/scheduler-store-6c4866d6.js.map} +1 -1
  434. package/dist/esm/search-icon.entry.js +1 -1
  435. package/dist/esm/select-dropdown.entry.js +2 -2
  436. package/dist/esm/sent-icon.entry.js +1 -1
  437. package/dist/esm/spam-icon.entry.js +1 -1
  438. package/dist/esm/star-icon.entry.js +1 -1
  439. package/dist/esm/stop-icon.entry.js +1 -1
  440. package/dist/esm/textarea-component.entry.js +1 -1
  441. package/dist/esm/time-period-selector.entry.js +2 -2
  442. package/dist/esm/toggle-switch.entry.js +1 -1
  443. package/dist/esm/toggle-switch.entry.js.map +1 -1
  444. package/dist/esm/tooltip-component.entry.js +1 -1
  445. package/dist/esm/translate-icon.entry.js +1 -1
  446. package/dist/esm/trash-icon.entry.js +1 -1
  447. package/dist/esm/underline-icon.entry.js +1 -1
  448. package/dist/{nylas-web-elements/utils-49a1d17b.js → esm/utils-04c10cbd.js} +2 -2
  449. package/dist/esm/{utils-49a1d17b.js.map → utils-04c10cbd.js.map} +1 -1
  450. package/dist/esm/warning-icon.entry.js +1 -1
  451. package/dist/nylas-web-elements/add-circle-icon.entry.js +1 -1
  452. package/dist/nylas-web-elements/archive-icon.entry.js +1 -1
  453. package/dist/nylas-web-elements/arrow-icon.entry.js +1 -1
  454. package/dist/nylas-web-elements/bold-icon.entry.js +1 -1
  455. package/dist/nylas-web-elements/button-component.entry.js +1 -1
  456. package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +1 -1
  457. package/dist/nylas-web-elements/calendar-check-icon.entry.js +1 -1
  458. package/dist/nylas-web-elements/calendar-icon.entry.js +1 -1
  459. package/dist/nylas-web-elements/calendar-info-icon.entry.js +1 -1
  460. package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +1 -1
  461. package/dist/nylas-web-elements/checkbox-component.entry.js +1 -1
  462. package/dist/nylas-web-elements/checkbox-component.entry.js.map +1 -1
  463. package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +1 -1
  464. package/dist/nylas-web-elements/chevron-icon.entry.js +1 -1
  465. package/dist/nylas-web-elements/clock-icon.entry.js +1 -1
  466. package/dist/nylas-web-elements/close-icon.entry.js +1 -1
  467. package/dist/nylas-web-elements/document-refresh-icon.entry.js +1 -1
  468. package/dist/nylas-web-elements/flow-icon.entry.js +1 -1
  469. package/dist/nylas-web-elements/folder-icon.entry.js +1 -1
  470. package/dist/nylas-web-elements/forward-icon.entry.js +1 -1
  471. package/dist/nylas-web-elements/globe-icon.entry.js +1 -1
  472. package/dist/nylas-web-elements/google-logo-icon.entry.js +1 -1
  473. package/dist/nylas-web-elements/inbox-icon.entry.js +1 -1
  474. package/dist/nylas-web-elements/{index.es-896126fc.js → index.es-c5a8a1ac.js} +2 -2
  475. package/dist/nylas-web-elements/{index.es-896126fc.js.map → index.es-c5a8a1ac.js.map} +1 -1
  476. package/dist/nylas-web-elements/index.esm.js +2 -2
  477. package/dist/nylas-web-elements/info-icon.entry.js +1 -1
  478. package/dist/nylas-web-elements/input-component.entry.js +1 -1
  479. package/dist/nylas-web-elements/input-dropdown.entry.js +13 -3
  480. package/dist/nylas-web-elements/input-dropdown.entry.js.map +1 -1
  481. package/dist/nylas-web-elements/italic-icon.entry.js +1 -1
  482. package/dist/nylas-web-elements/loading-icon.entry.js +1 -1
  483. package/dist/nylas-web-elements/location-icon.entry.js +1 -1
  484. package/dist/nylas-web-elements/location-off-icon.entry.js +1 -1
  485. package/dist/nylas-web-elements/{mailbox-store-c9b2a4fd.js → mailbox-store-94133e15.js} +3 -3
  486. package/dist/nylas-web-elements/{mailbox-store-c9b2a4fd.js.map → mailbox-store-94133e15.js.map} +1 -1
  487. package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +1 -1
  488. package/dist/nylas-web-elements/multi-select-dropdown.entry.js +3 -3
  489. package/dist/nylas-web-elements/nylas-additional-participants.entry.js +19 -15
  490. package/dist/nylas-web-elements/nylas-additional-participants.entry.js.map +1 -1
  491. package/dist/nylas-web-elements/{nylas-api-request-27e81d64.js → nylas-api-request-5ac7887c.js} +2 -2
  492. package/dist/nylas-web-elements/{nylas-api-request-27e81d64.js.map → nylas-api-request-5ac7887c.js.map} +1 -1
  493. package/dist/nylas-web-elements/nylas-availability-picker.entry.js +29 -18
  494. package/dist/nylas-web-elements/nylas-availability-picker.entry.js.map +1 -1
  495. package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +2 -2
  496. package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js +2 -2
  497. package/dist/nylas-web-elements/nylas-booking-form.entry.js +2 -2
  498. package/dist/nylas-web-elements/nylas-buffer-time.entry.js +2 -2
  499. package/dist/nylas-web-elements/nylas-calendar-picker.entry.js +2 -2
  500. package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +3 -3
  501. package/dist/nylas-web-elements/nylas-cancellation-policy.entry.js +3 -3
  502. package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +3 -3
  503. package/dist/nylas-web-elements/nylas-composer.entry.js +2 -2
  504. package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +3 -3
  505. package/dist/nylas-web-elements/nylas-customize-booking-settings.entry.js +3 -3
  506. package/dist/nylas-web-elements/nylas-date-picker.entry.js +2 -2
  507. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +96 -78
  508. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
  509. package/dist/nylas-web-elements/nylas-event-description.entry.js +2 -2
  510. package/dist/nylas-web-elements/nylas-event-duration.entry.js +2 -2
  511. package/dist/nylas-web-elements/nylas-event-info.entry.js +3 -3
  512. package/dist/nylas-web-elements/nylas-event-limits.entry.js +3 -3
  513. package/dist/nylas-web-elements/nylas-event-location.entry.js +5 -5
  514. package/dist/nylas-web-elements/nylas-event-title.entry.js +2 -2
  515. package/dist/nylas-web-elements/nylas-form-card.entry.js +3 -3
  516. package/dist/nylas-web-elements/nylas-if-state.entry.js +3 -3
  517. package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +3 -3
  518. package/dist/nylas-web-elements/nylas-list-configurations.entry.js +2 -2
  519. package/dist/nylas-web-elements/nylas-list-folders.entry.js +3 -3
  520. package/dist/nylas-web-elements/nylas-list-threads.entry.js +3 -3
  521. package/dist/nylas-web-elements/nylas-locale-switch.entry.js +2 -2
  522. package/dist/nylas-web-elements/nylas-login.entry.js +3 -3
  523. package/dist/nylas-web-elements/nylas-logo.entry.js +1 -1
  524. package/dist/nylas-web-elements/nylas-mailbox-pagination.entry.js +2 -2
  525. package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +3 -3
  526. package/dist/nylas-web-elements/nylas-mailbox.entry.js +4 -4
  527. package/dist/nylas-web-elements/nylas-min-booking-notice.entry.js +3 -3
  528. package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js +3 -3
  529. package/dist/nylas-web-elements/nylas-notification.entry.js +2 -2
  530. package/dist/nylas-web-elements/nylas-participants-custom-availability.entry.js +138 -0
  531. package/dist/nylas-web-elements/nylas-participants-custom-availability.entry.js.map +1 -0
  532. package/dist/nylas-web-elements/nylas-provider.entry.js +5 -5
  533. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +3 -3
  534. package/dist/nylas-web-elements/nylas-scheduling.entry.js +3 -3
  535. package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +2 -2
  536. package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +4 -4
  537. package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +4 -4
  538. package/dist/nylas-web-elements/nylas-threads-search.entry.js +3 -3
  539. package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +2 -2
  540. package/dist/nylas-web-elements/nylas-timeslot-interval.entry.js +4 -4
  541. package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +2 -2
  542. package/dist/nylas-web-elements/nylas-view-email.entry.js +2 -2
  543. package/dist/nylas-web-elements/nylas-view-thread.entry.js +3 -3
  544. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  545. package/dist/nylas-web-elements/{p-e4a7746d.entry.js → p-012cb022.entry.js} +2 -2
  546. package/dist/nylas-web-elements/{p-b9064de4.entry.js → p-017f2538.entry.js} +2 -2
  547. package/dist/nylas-web-elements/p-086746ee.entry.js +2 -0
  548. package/dist/nylas-web-elements/p-0919bbbe.entry.js +2 -0
  549. package/dist/nylas-web-elements/{p-da21471c.entry.js → p-13eb1a05.entry.js} +2 -2
  550. package/dist/nylas-web-elements/{p-deafc6bc.entry.js → p-1569f74f.entry.js} +2 -2
  551. package/dist/nylas-web-elements/{p-6e888067.entry.js → p-23c143f6.entry.js} +2 -2
  552. package/dist/nylas-web-elements/p-2743621d.entry.js +2 -0
  553. package/dist/nylas-web-elements/p-2743621d.entry.js.map +1 -0
  554. package/dist/nylas-web-elements/{p-a7dd4c24.entry.js → p-30144ca0.entry.js} +2 -2
  555. package/dist/nylas-web-elements/{p-11f94952.entry.js → p-336631dd.entry.js} +2 -2
  556. package/dist/nylas-web-elements/p-43bfaa93.entry.js +2 -0
  557. package/dist/nylas-web-elements/{p-120d2c72.entry.js → p-4e48846a.entry.js} +2 -2
  558. package/dist/nylas-web-elements/{p-4b84ab3f.entry.js → p-5fd52ecd.entry.js} +2 -2
  559. package/dist/nylas-web-elements/p-62cf46ee.entry.js +2 -0
  560. package/dist/nylas-web-elements/{p-32682655.entry.js → p-672f1951.entry.js} +2 -2
  561. package/dist/nylas-web-elements/{p-ace74b9d.entry.js → p-84c53084.entry.js} +2 -2
  562. package/dist/nylas-web-elements/{p-470536e0.entry.js → p-8c1a5e57.entry.js} +2 -2
  563. package/dist/nylas-web-elements/p-8eddadb3.entry.js +2 -0
  564. package/dist/nylas-web-elements/{p-0dbc0c01.entry.js.map → p-8eddadb3.entry.js.map} +1 -1
  565. package/dist/nylas-web-elements/p-938d4ec9.entry.js +2 -0
  566. package/dist/nylas-web-elements/{p-fbac3865.entry.js.map → p-938d4ec9.entry.js.map} +1 -1
  567. package/dist/nylas-web-elements/{p-6891ad5d.entry.js → p-a118f20c.entry.js} +2 -2
  568. package/dist/nylas-web-elements/{p-24082558.entry.js → p-a5dbdc8e.entry.js} +2 -2
  569. package/dist/nylas-web-elements/{p-4fdc6122.entry.js → p-a7640232.entry.js} +2 -2
  570. package/dist/nylas-web-elements/{p-09fec39c.entry.js → p-a804616a.entry.js} +2 -2
  571. package/dist/nylas-web-elements/{p-27db7b0b.entry.js → p-ad93d3bd.entry.js} +3 -3
  572. package/dist/nylas-web-elements/{p-bfd3b5f0.entry.js → p-b3d46e08.entry.js} +2 -2
  573. package/dist/nylas-web-elements/{p-4b1466b3.entry.js → p-b443f769.entry.js} +2 -2
  574. package/dist/nylas-web-elements/{p-c8c737ed.entry.js → p-c1df61d0.entry.js} +2 -2
  575. package/dist/nylas-web-elements/{p-395f49eb.entry.js → p-cc67e6a8.entry.js} +2 -2
  576. package/dist/nylas-web-elements/{p-4f548e66.entry.js → p-d1d984c5.entry.js} +2 -2
  577. package/dist/nylas-web-elements/{p-98a2f588.entry.js → p-d9a145a5.entry.js} +2 -2
  578. package/dist/nylas-web-elements/p-dcb497d4.entry.js +2 -0
  579. package/dist/nylas-web-elements/p-dcb497d4.entry.js.map +1 -0
  580. package/dist/nylas-web-elements/{p-13b003b5.entry.js → p-df2b34ee.entry.js} +2 -2
  581. package/dist/nylas-web-elements/{p-ec26560f.entry.js → p-e9c1e983.entry.js} +2 -2
  582. package/dist/nylas-web-elements/p-e9f7d494.entry.js +2 -0
  583. package/dist/nylas-web-elements/{p-53da3000.entry.js.map → p-e9f7d494.entry.js.map} +1 -1
  584. package/dist/nylas-web-elements/p-f1e9ed6b.entry.js +2 -0
  585. package/dist/nylas-web-elements/p-f1e9ed6b.entry.js.map +1 -0
  586. package/dist/nylas-web-elements/p-f8e0164c.entry.js +2 -0
  587. package/dist/nylas-web-elements/p-f8e0164c.entry.js.map +1 -0
  588. package/dist/nylas-web-elements/{p-b27e34a9.entry.js → p-fbfa3a7d.entry.js} +2 -2
  589. package/dist/nylas-web-elements/{p-d5146511.entry.js → p-fd8e29e6.entry.js} +2 -2
  590. package/dist/nylas-web-elements/people-icon.entry.js +1 -1
  591. package/dist/nylas-web-elements/person-icon.entry.js +1 -1
  592. package/dist/nylas-web-elements/play-icon.entry.js +1 -1
  593. package/dist/nylas-web-elements/radio-button-group.entry.js +1 -1
  594. package/dist/nylas-web-elements/refresh-icon.entry.js +1 -1
  595. package/dist/nylas-web-elements/{register-component-6ae95538.js → register-component-aef40ec4.js} +2 -2
  596. package/dist/nylas-web-elements/{register-component-6ae95538.js.map → register-component-aef40ec4.js.map} +1 -1
  597. package/dist/nylas-web-elements/reply-all-icon.entry.js +1 -1
  598. package/dist/nylas-web-elements/reply-icon.entry.js +1 -1
  599. package/dist/nylas-web-elements/{scheduler-store-17f7f1c8.js → scheduler-store-6c4866d6.js} +2 -2
  600. package/dist/{esm/scheduler-store-17f7f1c8.js.map → nylas-web-elements/scheduler-store-6c4866d6.js.map} +1 -1
  601. package/dist/nylas-web-elements/search-icon.entry.js +1 -1
  602. package/dist/nylas-web-elements/select-dropdown.entry.js +2 -2
  603. package/dist/nylas-web-elements/sent-icon.entry.js +1 -1
  604. package/dist/nylas-web-elements/spam-icon.entry.js +1 -1
  605. package/dist/nylas-web-elements/star-icon.entry.js +1 -1
  606. package/dist/nylas-web-elements/stop-icon.entry.js +1 -1
  607. package/dist/nylas-web-elements/textarea-component.entry.js +1 -1
  608. package/dist/nylas-web-elements/time-period-selector.entry.js +2 -2
  609. package/dist/nylas-web-elements/toggle-switch.entry.js +1 -1
  610. package/dist/nylas-web-elements/toggle-switch.entry.js.map +1 -1
  611. package/dist/nylas-web-elements/tooltip-component.entry.js +1 -1
  612. package/dist/nylas-web-elements/translate-icon.entry.js +1 -1
  613. package/dist/nylas-web-elements/trash-icon.entry.js +1 -1
  614. package/dist/nylas-web-elements/underline-icon.entry.js +1 -1
  615. package/dist/{esm/utils-49a1d17b.js → nylas-web-elements/utils-04c10cbd.js} +2 -2
  616. package/dist/nylas-web-elements/{utils-49a1d17b.js.map → utils-04c10cbd.js.map} +1 -1
  617. package/dist/nylas-web-elements/warning-icon.entry.js +1 -1
  618. package/dist/types/components/design-system/input-dropdown/input-dropdown.d.ts +2 -0
  619. package/dist/types/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.d.ts +6 -1
  620. package/dist/types/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.d.ts +2 -4
  621. package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +12 -5
  622. package/dist/types/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.d.ts +36 -0
  623. package/dist/types/components.d.ts +122 -9
  624. package/package.json +1 -1
  625. package/dist/cjs/calendar-info-icon_27.cjs.entry.js.map +0 -1
  626. package/dist/esm/calendar-info-icon_27.entry.js.map +0 -1
  627. package/dist/nylas-web-elements/p-0dbc0c01.entry.js +0 -2
  628. package/dist/nylas-web-elements/p-3fd63454.entry.js +0 -2
  629. package/dist/nylas-web-elements/p-3fd63454.entry.js.map +0 -1
  630. package/dist/nylas-web-elements/p-427548f5.entry.js +0 -2
  631. package/dist/nylas-web-elements/p-427548f5.entry.js.map +0 -1
  632. package/dist/nylas-web-elements/p-53da3000.entry.js +0 -2
  633. package/dist/nylas-web-elements/p-7fac2bba.entry.js +0 -2
  634. package/dist/nylas-web-elements/p-96418bc6.entry.js +0 -2
  635. package/dist/nylas-web-elements/p-9acfea5f.entry.js +0 -2
  636. package/dist/nylas-web-elements/p-9acfea5f.entry.js.map +0 -1
  637. package/dist/nylas-web-elements/p-c170c56d.entry.js +0 -2
  638. package/dist/nylas-web-elements/p-de63bc35.entry.js +0 -2
  639. package/dist/nylas-web-elements/p-efd5b80a.entry.js +0 -2
  640. package/dist/nylas-web-elements/p-efd5b80a.entry.js.map +0 -1
  641. package/dist/nylas-web-elements/p-fbac3865.entry.js +0 -2
  642. /package/dist/nylas-web-elements/{p-e4a7746d.entry.js.map → p-012cb022.entry.js.map} +0 -0
  643. /package/dist/nylas-web-elements/{p-b9064de4.entry.js.map → p-017f2538.entry.js.map} +0 -0
  644. /package/dist/nylas-web-elements/{p-96418bc6.entry.js.map → p-086746ee.entry.js.map} +0 -0
  645. /package/dist/nylas-web-elements/{p-de63bc35.entry.js.map → p-0919bbbe.entry.js.map} +0 -0
  646. /package/dist/nylas-web-elements/{p-da21471c.entry.js.map → p-13eb1a05.entry.js.map} +0 -0
  647. /package/dist/nylas-web-elements/{p-deafc6bc.entry.js.map → p-1569f74f.entry.js.map} +0 -0
  648. /package/dist/nylas-web-elements/{p-6e888067.entry.js.map → p-23c143f6.entry.js.map} +0 -0
  649. /package/dist/nylas-web-elements/{p-a7dd4c24.entry.js.map → p-30144ca0.entry.js.map} +0 -0
  650. /package/dist/nylas-web-elements/{p-11f94952.entry.js.map → p-336631dd.entry.js.map} +0 -0
  651. /package/dist/nylas-web-elements/{p-7fac2bba.entry.js.map → p-43bfaa93.entry.js.map} +0 -0
  652. /package/dist/nylas-web-elements/{p-120d2c72.entry.js.map → p-4e48846a.entry.js.map} +0 -0
  653. /package/dist/nylas-web-elements/{p-4b84ab3f.entry.js.map → p-5fd52ecd.entry.js.map} +0 -0
  654. /package/dist/nylas-web-elements/{p-c170c56d.entry.js.map → p-62cf46ee.entry.js.map} +0 -0
  655. /package/dist/nylas-web-elements/{p-32682655.entry.js.map → p-672f1951.entry.js.map} +0 -0
  656. /package/dist/nylas-web-elements/{p-ace74b9d.entry.js.map → p-84c53084.entry.js.map} +0 -0
  657. /package/dist/nylas-web-elements/{p-470536e0.entry.js.map → p-8c1a5e57.entry.js.map} +0 -0
  658. /package/dist/nylas-web-elements/{p-6891ad5d.entry.js.map → p-a118f20c.entry.js.map} +0 -0
  659. /package/dist/nylas-web-elements/{p-24082558.entry.js.map → p-a5dbdc8e.entry.js.map} +0 -0
  660. /package/dist/nylas-web-elements/{p-4fdc6122.entry.js.map → p-a7640232.entry.js.map} +0 -0
  661. /package/dist/nylas-web-elements/{p-09fec39c.entry.js.map → p-a804616a.entry.js.map} +0 -0
  662. /package/dist/nylas-web-elements/{p-27db7b0b.entry.js.map → p-ad93d3bd.entry.js.map} +0 -0
  663. /package/dist/nylas-web-elements/{p-bfd3b5f0.entry.js.map → p-b3d46e08.entry.js.map} +0 -0
  664. /package/dist/nylas-web-elements/{p-4b1466b3.entry.js.map → p-b443f769.entry.js.map} +0 -0
  665. /package/dist/nylas-web-elements/{p-c8c737ed.entry.js.map → p-c1df61d0.entry.js.map} +0 -0
  666. /package/dist/nylas-web-elements/{p-395f49eb.entry.js.map → p-cc67e6a8.entry.js.map} +0 -0
  667. /package/dist/nylas-web-elements/{p-4f548e66.entry.js.map → p-d1d984c5.entry.js.map} +0 -0
  668. /package/dist/nylas-web-elements/{p-98a2f588.entry.js.map → p-d9a145a5.entry.js.map} +0 -0
  669. /package/dist/nylas-web-elements/{p-13b003b5.entry.js.map → p-df2b34ee.entry.js.map} +0 -0
  670. /package/dist/nylas-web-elements/{p-ec26560f.entry.js.map → p-e9c1e983.entry.js.map} +0 -0
  671. /package/dist/nylas-web-elements/{p-b27e34a9.entry.js.map → p-fbfa3a7d.entry.js.map} +0 -0
  672. /package/dist/nylas-web-elements/{p-d5146511.entry.js.map → p-fd8e29e6.entry.js.map} +0 -0
@@ -18,7 +18,7 @@ export class ToggleSwitchComponent {
18
18
  });
19
19
  }
20
20
  render() {
21
- return (h("label", { key: 'e1666e95609e7e7b8364dc92630b3549786db8cd', class: "switch", htmlFor: "checkbox" }, h("input", { key: 'ed6b39d27fd625e94a8176dc35ac550f73b9aac9', type: "checkbox", id: "checkbox", name: this.name }), h("div", { key: 'f589add79b5f1941377b590e48627996c90b6730', class: "slider round" })));
21
+ return (h("label", { key: 'd91b5d5853ab8a256953c4fde8a79b1ef739433d', class: "switch", part: "ts_label" }, h("input", { key: '6f694e5a07cefacc05e155a0319fe99ec1714354', type: "checkbox", part: "ts_input", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), h("div", { key: 'e2db848dbad679562201ba8151a523fa1b9dc2b9', class: "slider round", part: "ts_slider" })));
22
22
  }
23
23
  static get is() { return "toggle-switch"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-switch.js","sourceRoot":"","sources":["../../../../src/components/design-system/toggle-switch/toggle-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAO/E,MAAM,OAAO,qBAAqB;;oBACT,eAAe;uBACX,KAAK;qBACR,EAAE;yBAEI,IAAI,CAAC,OAAO;;IAQ1C,iBAAiB;QACf,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,WAAW;QACT,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC;YAC/B,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;IAED,MAAM;QACJ,OAAO,CACL,8DAAO,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAC,UAAU;YACtC,8DAAO,IAAI,EAAC,UAAU,EAAC,EAAE,EAAC,UAAU,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI;YACxD,4DAAK,KAAK,EAAC,cAAc,GAAO,CAC1B,CACT,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, State, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'toggle-switch',\n styleUrl: 'toggle-switch.scss',\n shadow: true,\n})\nexport class ToggleSwitchComponent {\n @Prop() name: string = 'toggle-switch';\n @Prop() checked: boolean = false;\n @Prop() label: string = '';\n\n @State() isChecked: boolean = this.checked;\n\n @Event() nylasFormSwitchToggled!: EventEmitter<{\n checked: boolean;\n name: string;\n label: string;\n }>;\n\n componentWillLoad() {\n this.isChecked = this.checked;\n }\n\n toggleCheck() {\n this.isChecked = !this.isChecked;\n this.nylasFormSwitchToggled.emit({\n checked: this.isChecked,\n name: this.name,\n label: this.label,\n });\n }\n\n render() {\n return (\n <label class=\"switch\" htmlFor=\"checkbox\">\n <input type=\"checkbox\" id=\"checkbox\" name={this.name} />\n <div class=\"slider round\"></div>\n </label>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"toggle-switch.js","sourceRoot":"","sources":["../../../../src/components/design-system/toggle-switch/toggle-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAc/E,MAAM,OAAO,qBAAqB;;oBACT,eAAe;uBACX,KAAK;qBACR,EAAE;yBAEI,IAAI,CAAC,OAAO;;IAQ1C,iBAAiB;QACf,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,WAAW;QACT,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC;YAC/B,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;IAED,MAAM;QACJ,OAAO,CACL,8DAAO,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,UAAU;YACnC,8DAAO,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,GAAI;YACvH,4DAAK,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,WAAW,GAAO,CAC3C,CACT,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, State, Event, EventEmitter } from '@stencil/core';\n\n/**\n * The `toggle-switch` component is a UI component that allows users to toggle a switch.\n *\n * @part ts_label - The label of the toggle switch\n * @part ts_input - The input of the toggle switch\n * @part ts_slider - The slider of the toggle switch\n */\n@Component({\n tag: 'toggle-switch',\n styleUrl: 'toggle-switch.scss',\n shadow: true,\n})\nexport class ToggleSwitchComponent {\n @Prop() name: string = 'toggle-switch';\n @Prop() checked: boolean = false;\n @Prop() label: string = '';\n\n @State() isChecked: boolean = this.checked;\n\n @Event() nylasFormSwitchToggled!: EventEmitter<{\n checked: boolean;\n name: string;\n label: string;\n }>;\n\n componentWillLoad() {\n this.isChecked = this.checked;\n }\n\n toggleCheck() {\n this.isChecked = !this.isChecked;\n this.nylasFormSwitchToggled.emit({\n checked: this.isChecked,\n name: this.name,\n label: this.label,\n });\n }\n\n render() {\n return (\n <label class=\"switch\" part=\"ts_label\">\n <input type=\"checkbox\" part=\"ts_input\" name={this.name} checked={this.isChecked} onChange={() => this.toggleCheck()} />\n <div class=\"slider round\" part=\"ts_slider\"></div>\n </label>\n );\n }\n}\n"]}
@@ -12,7 +12,7 @@ export class TooltipComponent {
12
12
  event.target.nextElementSibling.style.opacity = '0';
13
13
  }
14
14
  render() {
15
- return (h("div", { key: 'ea47f5cff4c14535dd36483a6a3c89da000ddfc0', class: "tooltip-container", part: "tc__container" }, h("span", { key: 'be5171a0f003a2f9be9e70c5b8ecf2f4599c0218', class: "info-icon", tabindex: "0", onFocus: this.showTooltip.bind(this), onBlur: this.hideTooltip.bind(this) }, h("slot", { key: 'd031260e240c50cc93d0096909e75d2f617239e7', name: "tooltip-icon" }, "i")), h("span", { key: '0d1d4f0a7474116b9d083a4ad558bb934be2dc65', class: `tooltip-content ${this.position}`, part: "tc__content" }, h("slot", { key: '0165a825160db148833ffafff525fe9b305ac80b', name: "tooltip-content" }, "This is a help text."))));
15
+ return (h("div", { key: 'bd8af6d53895dd9582768009c12e0c382c35941a', class: "tooltip-container", part: "tc__container" }, h("span", { key: '66dfae699129a52375a63cc0e1d9c27155cce633', class: "info-icon", tabindex: "0", onFocus: this.showTooltip.bind(this), onBlur: this.hideTooltip.bind(this) }, h("slot", { key: '0a174fa4c95159a405df1562f33677e12f931381', name: "tooltip-icon" }, "i")), h("span", { key: '7594838f601b42b759c13263bdbc08bd2574a918', class: `tooltip-content ${this.position}`, part: "tc__content" }, h("slot", { key: '555bb30de6e5bee11f3cb65c8480f5ce21d996c5', name: "tooltip-content" }, "This is a help text."))));
16
16
  }
17
17
  static get is() { return "tooltip-component"; }
18
18
  static get encapsulation() { return "shadow"; }
@@ -127,7 +127,7 @@ export class NylasComposer {
127
127
  this.editorEl.focus();
128
128
  }
129
129
  render() {
130
- return (h(Host, { key: 'c8ab18162320c10834660c655141a985c36958ac' }, h("sp-theme", { key: '01a86b0ddef68c16b139cdb95bf3f9df102ead60', scale: "medium", color: "dark" }, h("div", { key: '280d8dfbee592023d7461e6691805a6e44e8837b', class: "editor", contentEditable: true, ref: r => (this.editorEl = r) }, h("div", { key: '35437f24077f1e5a9b629bfca6437ec6740c8780', class: "toolbar", ref: r => (this.toolbarEl = r), contentEditable: false }, h("sp-button", { key: '378551180f48beb175216d045acd4d65355f3234', quiet: true, onClick: () => document.execCommand('bold') }, h("div", { key: 'a7a6872cfc4d34939aaeba4e45e67d8ca1ac52ab', slot: "icon" }, h("bold-icon", { key: '198210356c76239162c2d44251845529b5765e04' })), h("div", { key: '6ecdf762f2a29a39bce8c49da6cc366594218c52', slot: "label" }, "Bold")), h("sp-button", { key: '6ee0821abd7462a9105f13228a4441ed302d0df9', quiet: true, onClick: () => document.execCommand('underline') }, h("div", { key: '37745f4ee7e5bac2d4bba65d3682338590b49c88', slot: "icon" }, h("underline-icon", { key: '9b7a46dbf44378c001c16afca0e8c30e0b1ea12f' })), h("div", { key: '54e6ce111dcc82421b475040a0a85d26c648c1d4', slot: "label" }, "Underline")), h("sp-button", { key: 'ae292c9f8f55a7ae82ddfaaa75ba9a045c80c02d', quiet: true, onClick: () => document.execCommand('italic') }, h("div", { key: 'fdfdf0265a51eeca44c72ec7de634f9c23a5a846', slot: "icon" }, h("italic-icon", { key: '6308247060d42eb21284e6687a0abc18cf63e32c' })), h("div", { key: '49487a1f0677fc394dd617abfdb645c56e441f55', slot: "label" }, "Italic")))), h("div", { key: '08b56206aef08fbc262ec615c1c593949ef05c82', class: 'buttons' }, h("sp-button", { key: 'f099e2091f8070adaf80cd9fd4299e53e25ef39b', onClick: this.sendComposer, class: "send" }, "Send"), h("sp-button", { key: '78c73f9aec9dd29a7b1360192ef190d20f0bb092', onClick: this.closeComposer, class: "close" }, "Close")))));
130
+ return (h(Host, { key: '272229753ac9d990a72c4e1d743b34d01d57d3e3' }, h("sp-theme", { key: 'a43065734dff3bbda8163f9d39f381619020e603', scale: "medium", color: "dark" }, h("div", { key: '11d5f1e8d8c3e7debda04af54a2c6ef5c63b3260', class: "editor", contentEditable: true, ref: r => (this.editorEl = r) }, h("div", { key: '6c936b9bfb1fdce1d8f073405bd80a582849e175', class: "toolbar", ref: r => (this.toolbarEl = r), contentEditable: false }, h("sp-button", { key: 'b6c5c51c52d707165367990fa76b5a80fc837936', quiet: true, onClick: () => document.execCommand('bold') }, h("div", { key: 'e8d07f19efe1bcbb1eb0efd69fe0566df8a656d3', slot: "icon" }, h("bold-icon", { key: 'cd5c2e7b5883e1ff5c6d34106a0b4086ffb9b1d2' })), h("div", { key: '8efca1559b463fc356fe69d0bf7fc327f90ab846', slot: "label" }, "Bold")), h("sp-button", { key: '1d7703909feab13241fd75052946f198ad01d1b6', quiet: true, onClick: () => document.execCommand('underline') }, h("div", { key: 'ab1d89e8d5ebca33447274cffbcda5574f41bdde', slot: "icon" }, h("underline-icon", { key: '0598b423ac6724aef96ca5343ce1449fb56f8766' })), h("div", { key: 'c091c8f3d08798fa7d49b86508b29047e5e4ea44', slot: "label" }, "Underline")), h("sp-button", { key: '60ea18e3f3ff95760910fef22119255477375a8f', quiet: true, onClick: () => document.execCommand('italic') }, h("div", { key: 'ed6f703adc15b721e0e3cfc72ab438a620b34dbd', slot: "icon" }, h("italic-icon", { key: 'adb995c72136305499b149eb706841b4ca8291c8' })), h("div", { key: '481da563cadf1885efe1f466c5299913f78442a7', slot: "label" }, "Italic")))), h("div", { key: '5c2185ee0ba3c99bde46c13094c696fba33bfe6a', class: 'buttons' }, h("sp-button", { key: 'f73a9a795a24e59d2c835b5a9a1cb7e2d16532c6', onClick: this.sendComposer, class: "send" }, "Send"), h("sp-button", { key: '2a2ef56256878c45da84f03933e292a98069c44d', onClick: this.closeComposer, class: "close" }, "Close")))));
131
131
  }
132
132
  static get is() { return "nylas-composer"; }
133
133
  static get encapsulation() { return "shadow"; }
@@ -69,7 +69,7 @@ export class NylasListFolders {
69
69
  }
70
70
  }
71
71
  render() {
72
- return (h(Host, { key: '1e11d6ec60787049e26f1a3e68cfb5b47f602936' }, h("div", { key: '8da3cbb6045f0e41f0e400cc9b8a16215c9bb62a', class: "folders" }, this.defaultFolders?.map(folder => (h("sp-button", { onClick: () => this.folderSelectedHandler(folder), class: {
72
+ return (h(Host, { key: 'e90f5f811be2c0a00228edfee0b1fd31e1a428f7' }, h("div", { key: 'ef0f2e871c60c23905f56be5cd65c33bd9484e51', class: "folders" }, this.defaultFolders?.map(folder => (h("sp-button", { onClick: () => this.folderSelectedHandler(folder), class: {
73
73
  folder: true,
74
74
  selected: formatFolderName(folder.name ?? 'inbox').toLowerCase() === this.selectedFolder?.toLowerCase(),
75
75
  } }, h("div", { slot: "icon", class: "icon" }, this.getFolderIcon(folder)), this.formatFolderName(folder))))), this.otherFolders && (h(Fragment, null, h("hr", null), h("div", { class: "folders" }, this.otherFolders?.map(folder => (h("sp-button", { onClick: () => this.folderSelectedHandler(folder), class: {
@@ -43,7 +43,7 @@ export class NylasListThreads {
43
43
  debug(`[nylas-list-threads] Component did load`, { isAuthenticated: this.isAuthenticated });
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '3e4faece512aaa677f0317b10605cb44c486a67b' }, h("div", { key: '1d8beb8103757fd1166cc3a92fdd17ccaa6d9e93', class: 'list-thread', part: "list-thread" }, this.state === 'loading' && new Array(10).fill(0).map((_, i) => h("div", { class: "thread loading", style: { animationDelay: `${i * 20}ms` } })), this.state === 'ready' &&
46
+ return (h(Host, { key: 'f7b5d28a1a147ce235b3d850e23d1fc9aa565711' }, h("div", { key: 'ac9e58127a7862bedac849e0f45d0c7f92210315', class: 'list-thread', part: "list-thread" }, this.state === 'loading' && new Array(10).fill(0).map((_, i) => h("div", { class: "thread loading", style: { animationDelay: `${i * 20}ms` } })), this.state === 'ready' &&
47
47
  this.threads.map(thread => (h("button", { key: thread?.id, class: {
48
48
  'thread': true,
49
49
  'unread': thread?.unread === true,
@@ -119,7 +119,7 @@ export class NylasMailbox {
119
119
  return this.nylasMailboxConnector;
120
120
  }
121
121
  render() {
122
- return (h(Host, { key: '9476c9f8e2108d10a35aac74b489a49228292027' }, h("slot", { key: '0d7ea47221ef6359f55a5b7b0e14f3756b093973' })));
122
+ return (h(Host, { key: '6bb1038fff2fd94cfb9a8097cbef1b22c2dd89a7' }, h("slot", { key: '156a3f9369cee85f1cca5b44897c4c48850f3bf2' })));
123
123
  }
124
124
  static get is() { return "nylas-mailbox"; }
125
125
  static get encapsulation() { return "shadow"; }
@@ -70,7 +70,7 @@ export class NylasMailboxToolbarButton {
70
70
  state = this.dataState ? store.get(storeKey) === 'loading' : false;
71
71
  }
72
72
  const key = state ? `state-loading` : 'state-ready';
73
- return (h(Host, { key: '4839dbd45155bb5d0fe239bf4e88f52a4561ea7d' }, h("sp-theme", { key: '92567f9780858879c10aa49a83e473b84d2d84b0', scale: "medium", color: "dark" }, h("sp-button", { onClick: this.onClick, disabled: state, key: key, "icon-only": this.iconOnly, label: this.renderByState(state) }, this.hasSlot('icon') && (h("div", { slot: "icon", class: 'slot' }, h("slot", { name: "icon" }))), !this.iconOnly && this.renderByState(state)))));
73
+ return (h(Host, { key: '7bdbe8488503110273c66be8925b9c54f233010e' }, h("sp-theme", { key: '9339a7c050ae944b2816e13cbc0e7d8057646fa4', scale: "medium", color: "dark" }, h("sp-button", { onClick: this.onClick, disabled: state, key: key, "icon-only": this.iconOnly, label: this.renderByState(state) }, this.hasSlot('icon') && (h("div", { slot: "icon", class: 'slot' }, h("slot", { name: "icon" }))), !this.iconOnly && this.renderByState(state)))));
74
74
  }
75
75
  static get is() { return "nylas-mailbox-toolbar-button"; }
76
76
  static get encapsulation() { return "shadow"; }
@@ -146,12 +146,12 @@ export class NylasSummarizeMessageButton {
146
146
  });
147
147
  }
148
148
  render() {
149
- return (h(Host, { key: '62f141a0a4bdba909ee313c05be61dfa5000bcaf' }, h("sp-theme", { key: '3839bf561000187ab456ae201cb539df420ec653', scale: "medium", color: "dark" }, h("sp-button", { key: '5bc73336c7afc299ac213c9b2903424a014a3f13', label: "Summarize email", "icon-only": true, onClickCapture: this.onClick, class: {
149
+ return (h(Host, { key: 'ab54db8a781cad602a1bd07093c407a8073934be' }, h("sp-theme", { key: 'bf0cbbed7ca686cfc5cc94d0209d61237359776a', scale: "medium", color: "dark" }, h("sp-button", { key: '51f6a0e1db8ae2fd8be3175886a522ca519170bf', label: "Summarize email", "icon-only": true, onClickCapture: this.onClick, class: {
150
150
  'summarize-button': true,
151
151
  'stopped': this.state === 'stopped',
152
152
  'loading': this.state === 'loading',
153
153
  'playing': this.state === 'playing',
154
- } }, this.state === 'stopped' && h("play-icon", null), this.state === 'loading' && h("loading-icon", null), this.state === 'playing' && h("stop-icon", null)), h("audio", { key: 'acf15db8df8104a59f452f29b797f4967f8243b3', ref: r => (this.audioRef = r), autoPlay: true, onPlaying: () => (this.state = 'playing'), onPause: () => (this.state = 'stopped'), onEnded: () => {
154
+ } }, this.state === 'stopped' && h("play-icon", null), this.state === 'loading' && h("loading-icon", null), this.state === 'playing' && h("stop-icon", null)), h("audio", { key: 'c8e6e048f53002956ea54465b1e7ebc4cbec1282', ref: r => (this.audioRef = r), autoPlay: true, onPlaying: () => (this.state = 'playing'), onPause: () => (this.state = 'stopped'), onEnded: () => {
155
155
  this.state = 'stopped';
156
156
  debug(`[nylas-summarize-message-button] Audio ended`);
157
157
  } }))));
@@ -76,11 +76,11 @@ export class NylasThreadsRefresh {
76
76
  this.state = state;
77
77
  }
78
78
  render() {
79
- return (h(Host, { key: '1a5e154e652550169d5cbdc160be06da9ac1b8fd' }, h("div", { key: '294009192190ba042e972b35d669afe9eda99301', class: "container", ref: r => (this.containerElement = r) }, h("button", { key: '7ca1d0bcfe649891fb6448b5b31fd7d80238b47c', class: {
79
+ return (h(Host, { key: '78623dead3d55974c4f23b65b404fe4e23f899ef' }, h("div", { key: '5f569606f9e27b49a5e621bf5576713749053275', class: "container", ref: r => (this.containerElement = r) }, h("button", { key: '3a11bbafb81272c310ce0cad0a806293f04d231b', class: {
80
80
  'pull-to-refresh': true,
81
81
  'pulling': this.pulling,
82
82
  'refreshing': this.state === 'loading',
83
- }, "aria-label": "Refreshing..." }, this.state === 'loading' && h("refresh-icon", { slot: "icon" }), this.state !== 'loading' && h("arrow-icon", { slot: "icon" })), h("div", { key: '6086b2714b71f1c20d12afae5fc155d8653345e9', class: "content", ref: r => (this.contentElement = r) }, h("slot", { key: 'f4c19825eaf317f60ac4c254f97c36237e123926' })))));
83
+ }, "aria-label": "Refreshing..." }, this.state === 'loading' && h("refresh-icon", { slot: "icon" }), this.state !== 'loading' && h("arrow-icon", { slot: "icon" })), h("div", { key: 'e348316e54c25bce6df68d89d51a637657a91131', class: "content", ref: r => (this.contentElement = r) }, h("slot", { key: '502f560a3e42519b3b05f5009d71562ec8e257a4' })))));
84
84
  }
85
85
  static get is() { return "nylas-threads-refresh"; }
86
86
  static get encapsulation() { return "shadow"; }
@@ -43,7 +43,7 @@ export class NylasThreadsSearch {
43
43
  this.internalQuery = this.query;
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '9ac2361052b4def43a8bd3296a417a9c67044866' }, h("sp-theme", { key: 'd5a0bfbb7b354b88e24f677038234c118c69a8e6', scale: "medium", color: "dark" }, h("sp-search", { key: '8080a39d996626207153323910be28951e21a2e5', quiet: true, onSubmit: this.onSearch, onBlur: this.onSearch, value: this.internalQuery }))));
46
+ return (h(Host, { key: '1687f5f2753a274f3ded1633a69873ff54ffb56c' }, h("sp-theme", { key: '63c6d6be18695a7e78eaf5a15745f5e6772c7f4d', scale: "medium", color: "dark" }, h("sp-search", { key: '2a107fb7f19d21db7a62ebed0775a8f7c31d4f9c', quiet: true, onSubmit: this.onSearch, onBlur: this.onSearch, value: this.internalQuery }))));
47
47
  }
48
48
  static get is() { return "nylas-threads-search"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -151,7 +151,7 @@ export class NylasViewEmail {
151
151
  }
152
152
  render() {
153
153
  console.debug(`[nylas-view-email] render`, { hoistedFontURLs: this.hoistedFontURLs });
154
- return (h(Host, { key: '2b8f2ef90fc96788d4925a70b1cdb692b7e7d183' }, this.state === 'loading' && h("div", null, "Loading..."), this.state === 'ready' && (h(Fragment, null, this.styles.map(style => (h("style", null, DOMPurify.sanitize(style.innerHTML)))), h("div", { class: 'view-email', part: "view-email", innerHTML: this.sanitizedBody, ref: el => (this.viewEmailElement = el) })))));
154
+ return (h(Host, { key: '1a82db1175c9bffed825dc2941b277ab699ff457' }, this.state === 'loading' && h("div", null, "Loading..."), this.state === 'ready' && (h(Fragment, null, this.styles.map(style => (h("style", null, DOMPurify.sanitize(style.innerHTML)))), h("div", { class: 'view-email', part: "view-email", innerHTML: this.sanitizedBody, ref: el => (this.viewEmailElement = el) })))));
155
155
  }
156
156
  static get is() { return "nylas-view-email"; }
157
157
  static get encapsulation() { return "shadow"; }
@@ -121,7 +121,7 @@ export class NylasViewThread {
121
121
  const lastTwoMessages = this.internalMessages.slice(this.internalMessages.length - 2, this.internalMessages.length);
122
122
  const remainingMessages = this.internalMessages.slice(1, this.internalMessages.length - 2);
123
123
  const lastMessage = this.internalMessages[this.internalMessages.length - 1];
124
- return (h(Host, { key: 'd23da82f6e20bdd064fe7401ec7132546af2f45b' }, h("sp-theme", { key: '7af6f252ef74d89e3dc791dfe8323b13df9a9f92', scale: "medium", color: "dark" }, h("div", { key: '3feeeb134b11d39ff6530e911c305211f18b134f', class: "view-thread" }, h("div", { key: '235b80ce3983526e0544eb1a07c0b309187b9a38', class: "header" }, h("div", { key: 'b78c5f6e8eb8d4733c8a1cf131df8682a5a18469', class: 'subject' }, this.thread?.subject), h("div", { key: '2297fb41c56a1bba769e0a60289f48b3c5f47ce2', class: 'folders' }, this.thread?.folders?.map(folder => h("sp-tag", { size: "s" }, toTitleCase(folder.replace('CATEGORY_', '').replace('_', ' ')))))), h("div", { key: '2a22974a7b7bcc878c30d47f11e296bfdf728b0b', class: "messages" }, fistMessage && (h(ViewThreadMessage, { message: fistMessage, attachments: this.attachments.filter(attachment => attachment.messageId === fistMessage.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement })), remainingMessages.length > 0 && this.messages.length > 1 && !this.showAllEmails && lastTwoMessages.length > 0 && (h(Fragment, null, h("div", { class: 'show-more' }, h("button", { type: "button", onClick: this.onShowAllEmailsClick }, h("span", { class: 'avatar' }, remainingMessages.length), " ", h("span", { class: 'sr-only' }, "Show ", remainingMessages.length, " more emails"))), h("hr", null))), remainingMessages.length > 0 &&
124
+ return (h(Host, { key: 'a886c18c380e985cfb63a6a4ab523a93b2160ced' }, h("sp-theme", { key: 'dba4495bbb475f8825f5ade124f84f8bbe2c7c45', scale: "medium", color: "dark" }, h("div", { key: '05c602d7c43e31402c433cdaaaccb26c8d88fc7e', class: "view-thread" }, h("div", { key: '0b2900754126998aa4495a916b03ad2ea4157f34', class: "header" }, h("div", { key: '38db0766a5bc2dfc37b5269cf1e63ad25531ee8d', class: 'subject' }, this.thread?.subject), h("div", { key: 'bb73a5220497288f51b7c9d31e54cb685cfe54d5', class: 'folders' }, this.thread?.folders?.map(folder => h("sp-tag", { size: "s" }, toTitleCase(folder.replace('CATEGORY_', '').replace('_', ' ')))))), h("div", { key: '7d774b36fbfc216c05ed8cabbab79ad6b80e0e87', class: "messages" }, fistMessage && (h(ViewThreadMessage, { message: fistMessage, attachments: this.attachments.filter(attachment => attachment.messageId === fistMessage.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement })), remainingMessages.length > 0 && this.messages.length > 1 && !this.showAllEmails && lastTwoMessages.length > 0 && (h(Fragment, null, h("div", { class: 'show-more' }, h("button", { type: "button", onClick: this.onShowAllEmailsClick }, h("span", { class: 'avatar' }, remainingMessages.length), " ", h("span", { class: 'sr-only' }, "Show ", remainingMessages.length, " more emails"))), h("hr", null))), remainingMessages.length > 0 &&
125
125
  this.showAllEmails &&
126
126
  this.messages.length > 2 &&
127
127
  remainingMessages.map(email => (h(ViewThreadMessage, { message: email, attachments: this.attachments.filter(attachment => attachment.messageId === fistMessage?.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }))), lastTwoMessages.length > 0 &&
@@ -97,7 +97,7 @@ export class NylasIfState {
97
97
  }
98
98
  }
99
99
  render() {
100
- return (h(Host, { key: 'd6ab8fe21a9c0313509654e37beaac599d118e0c' }, h("div", { key: '7c78c97f67b2ceeb1f9002002ffeb9d7593264ad', class: this.classes }, this.show && h("slot", null))));
100
+ return (h(Host, { key: 'a54c576c586d31c138132ac5486c628bbcdf97df' }, h("div", { key: 'e5376f5282b5eeb4dd6b3a8a38ea2a3187c8da64', class: this.classes }, this.show && h("slot", null))));
101
101
  }
102
102
  static get is() { return "nylas-if-state"; }
103
103
  static get encapsulation() { return "shadow"; }
@@ -69,7 +69,7 @@ export class NylasLogin {
69
69
  }
70
70
  render() {
71
71
  const splitProviders = this.providers?.split(',') || [];
72
- return (h(Host, { key: 'ab43fd9982b371f0f43984849df45764505b3e7a' }, this.loginMethod === 'redirect' && (h("div", { class: "redirect-container" }, !this.isAuthenticated && (h("sp-button", { part: "button", onClick: this._handleLoginRedirect }, this.buttonText)))), this.loginMethod === 'emebded' && (h("main", { class: "login-container" }, h("section", { class: "login-box" }, h("header", null, h("img", { src: this.logoUrl, alt: `${this.companyName} logo`, width: '100%', style: {
72
+ return (h(Host, { key: 'd177bbbc08a869a96d94c09de2c9f7c40ed479e5' }, this.loginMethod === 'redirect' && (h("div", { class: "redirect-container" }, !this.isAuthenticated && (h("sp-button", { part: "button", onClick: this._handleLoginRedirect }, this.buttonText)))), this.loginMethod === 'emebded' && (h("main", { class: "login-container" }, h("section", { class: "login-box" }, h("header", null, h("img", { src: this.logoUrl, alt: `${this.companyName} logo`, width: '100%', style: {
73
73
  minWidth: this.logoWidth,
74
74
  } }), h("h1", null, "Welcome")), h("p", null, "Log in to your account to continue to ", this.companyName), h("div", { class: "login-methods" }, splitProviders.includes('google') && (h("button", { class: "login-google", onClick: this._onGoogleButtonClick }, h("svg", { xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", role: "img", width: "18", height: "18", preserveAspectRatio: "xMidYMid meet", viewBox: "0 0 256 262" }, h("path", { fill: "#4285F4", d: "M255.6 131.6c0-8.2-.8-16.2-2.2-23.9H130v45.3h70.3c-3 16.1-12.4 29.7-26.3 38.9v32.4h42.6c25-23 39.4-56.7 39.4-97.7z" }), h("path", { fill: "#34A853", d: "M130 262c35.3 0 64.9-11.7 86.5-31.7l-42.6-32.4c-11.7 7.9-26.7 12.6-43.9 12.6-33.7 0-62.3-22.7-72.5-53.4H14.5v33.3A130.3 130.3 0 00130 262z" }), h("path", { fill: "#FBBC05", d: "M57.5 158.1a72.7 72.7 0 010-54.2V70.6H14.5a130.4 130.4 0 000 120.8l43-33.3z" }), h("path", { fill: "#EA4335", d: "M130 51.6c19 0 36 6.5 49.4 19.2l37-36C195 13.1 165.2 0 130 0A130.3 130.3 0 0014.5 70.6l43 33.3c10.2-30.7 38.8-53.3 72.5-53.3z" })), "Continue with Google")), splitProviders.includes('microsoft') && (h("button", { class: "login-microsoft", onClick: this._onMicrosoftButtonClick }, h("svg", { xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", role: "img", width: "18", height: "18", preserveAspectRatio: "xMidYMid meet", viewBox: "0 0 448 512" }, h("path", { fill: "#F3F3F3", d: "M0 32v192h192V32H0zm256 0v192h192V32H256zm192 256v192h-192V288h192zM0 224v192h192V224H0z" })), "Continue with Microsoft"))), h("form", { class: "login-form", method: "POST", onSubmit: this._onFormSubmit }, h("label", { htmlFor: "email" }, "Email"), h("input", { type: "email", id: "email", name: "email", required: true, value: this.email }), h("button", { type: "submit" }, "Next")))))));
75
75
  }
@@ -101,7 +101,7 @@ export class NylasProvider {
101
101
  return this.baseProvider?.getStore('schedulerConfig');
102
102
  }
103
103
  render() {
104
- return (h(Host, { key: '57612ac13296cebf2c8731bcb9329f980db034d3' }, h("slot", { key: 'd752cd8c4cd47c9c17d57e23477d3a7720cbc8f5' })));
104
+ return (h(Host, { key: '7fee35047bafd5dc2f77e83012fe5149f17f7f9f' }, h("slot", { key: '96dcdef76b63b551e2deb56bfd0d1497ff897114' })));
105
105
  }
106
106
  static get is() { return "nylas-provider"; }
107
107
  static get encapsulation() { return "shadow"; }
@@ -62,7 +62,7 @@ export class NylasCancelBookingForm {
62
62
  debug(`[nylas-cancel-booking-form] Component disconnected`);
63
63
  }
64
64
  render() {
65
- return (h(Host, { key: '073a93d34ef7f08acaa827d0e5f391481572c447', part: "ncec" }, h("sp-theme", { key: 'b2183d3473931a5d1dd18dfdbe32fed0128d5dc1', theme: "spectrum", scale: "medium" }, h("div", { key: 'f9147a9d4041b5848bd11f06da7c96e98af3d9bd', class: "nylas-cancel-booking-form", part: "ncec__card" }, h("div", { key: '15da6ffbfe870b80bd057415469a4c94c1b3a243', class: "nylas-cancel-booking-form__calendar-icon", part: "ncec__icon" }, h("calendar-cancel-icon", { key: 'f3f36d408dbbe9717ff2ca13981714c36a4ba160' })), h("h3", { key: '56cd0d658ba9a1c63cd0017514a190c42796dbf4', class: "nylas-cancel-booking-form__title", part: "ncec__title" }, "Cancel booking?"), h("div", { key: 'db6672c70cc566544ec748f9c7a7426000e0c619', class: "nylas-cancel-booking-form__description", part: "ncec__description" }, this.cancellationPolicy), h("form", { key: 'd227b962561915e823a151a289b135c1d9065510', onSubmit: this.handleSubmitCancelBooking }, h("sp-field-label", { key: '42eea73d2ffb041b90fbdffdc0c7e16603eee949', for: "cancel-reason", class: this.cancellationError ? 'error' : '' }, "Reason for cancellation ", h("span", { key: '57978569e7bd5828b9dfaee053de9a8fae0892d5', class: "required" }, "*")), h("sp-textfield", { key: '08eb8ef56d7536053939086f5da1d5137e43b201', id: "cancel-reason", class: this.cancellationError ? 'error' : '', part: "ncec__reason-textarea", multiline: true, value: this.cancellationReason, onInput: this.handleOnChangeCancellationReason, onFocus: this.handleOnChangeCancellationReason, invalid: !!this.cancellationError }, h("sp-help-text", { key: 'dd985c41efd6427e1cec09874caee5c5d345c1cb', slot: "negative-help-text" }, this.cancellationError)), h("sp-button", { key: '97705e808b56f0d373dc1fa705fd61b912ed643e', variant: "primary", class: "cancel", type: "submit", part: "ncec__button-cta" }, "Cancel booking"), h("sp-button", { key: '21ae78e3492ad79cbee485709bb863c29f4b041f', variant: "secondary", class: "back", treatment: "outline", part: "ncec__button-outline", onClick: this.handleGoBackClicked }, "Go back"))))));
65
+ return (h(Host, { key: '25f45d91057f52263ae313ffed14d56ba22a783d', part: "ncec" }, h("sp-theme", { key: 'c213bc36d8459f0c206ca19bdd77d2d6b5ba5c1b', theme: "spectrum", scale: "medium" }, h("div", { key: 'bd50aa9a5c416825bc6b05c0bf47d85a31021c29', class: "nylas-cancel-booking-form", part: "ncec__card" }, h("div", { key: '9654b0cbda12436ac025265f82aa8bfe0a127fbd', class: "nylas-cancel-booking-form__calendar-icon", part: "ncec__icon" }, h("calendar-cancel-icon", { key: '3a97606f7c5f2e0f9c08dc7f0b199e56a4afa7f4' })), h("h3", { key: '26c0a115101786847fa681fa2cb3492561516f64', class: "nylas-cancel-booking-form__title", part: "ncec__title" }, "Cancel booking?"), h("div", { key: '05fe59fff1fa6b8bf38313bef5457d4022674570', class: "nylas-cancel-booking-form__description", part: "ncec__description" }, this.cancellationPolicy), h("form", { key: '6c3c1365bde80d1915026f125be9208c3c16d69c', onSubmit: this.handleSubmitCancelBooking }, h("sp-field-label", { key: 'fca2f04d8300b0e1be7a8071fed69c714f82491e', for: "cancel-reason", class: this.cancellationError ? 'error' : '' }, "Reason for cancellation ", h("span", { key: '1a77038fbda4048fca0e7cc8a39ad357a10f0fd7', class: "required" }, "*")), h("sp-textfield", { key: 'dbb19d14b09f7b85776ca288ec8f9fe58d5080f5', id: "cancel-reason", class: this.cancellationError ? 'error' : '', part: "ncec__reason-textarea", multiline: true, value: this.cancellationReason, onInput: this.handleOnChangeCancellationReason, onFocus: this.handleOnChangeCancellationReason, invalid: !!this.cancellationError }, h("sp-help-text", { key: 'e2e0c9794cae46b4a5cc857156d904a1236ccb49', slot: "negative-help-text" }, this.cancellationError)), h("sp-button", { key: 'a647e3e70704325f3986e6a869b65a5ec7495354', variant: "primary", class: "cancel", type: "submit", part: "ncec__button-cta" }, "Cancel booking"), h("sp-button", { key: 'b8b732ceafaf6d1090cf7b1a3d979854e17684ca', variant: "secondary", class: "back", treatment: "outline", part: "ncec__button-outline", onClick: this.handleGoBackClicked }, "Go back"))))));
66
66
  }
67
67
  static get is() { return "nylas-cancel-booking-form"; }
68
68
  static get encapsulation() { return "shadow"; }
@@ -45,7 +45,7 @@ export class NylasCancelledEventCard {
45
45
  debug(`[nylas-cancelled-event-card] Component disconnected`);
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: '11c4720a791169b5d562f484fecc2e5586bbdeaf', part: "ncec" }, h("sp-theme", { key: 'ccd04e6a1a895ad4be18bdb14d27a1c7403a0568', theme: "spectrum", color: "dark", scale: "medium" }, h("div", { key: 'a0360afadc55f58d20e651cb33036aa364a3740e', class: "nylas-cancelled-event-card", part: "ncec__card" }, h("div", { key: '727eba1d97de774c9a51909bec714688d9e60c1c', class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, h("calendar-cancel-icon", { key: 'bd96caf7b68ee65a470e5949d6622de0893c112d' })), h("h3", { key: '9bcb27d08117825255c2a5625e7b8f630e35b1e5', class: "nylas-cancelled-event-card__title", part: "ncec__title" }, "Your booking has been cancelled successfully!"), h("div", { key: 'f356c2776a296b89efe9ff9b02dd0f928ea1c0c8', class: "nylas-cancelled-event-card__description", part: "ncec__description" }, "A cancellation email has been sent to ", this.configSettings?.organizer?.name || 'the participants', "."), h("div", { key: '50130b11b9806a5c6adfd67f436d273fbec91774', class: "nylas-cancelled-event-card__cta" }, h("sp-button", { key: '77e8e62722ac4ace0a667b45feed6684b3bb6056', variant: "secondary", treatment: "outline", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? 'Closing...' : 'Close'))))));
48
+ return (h(Host, { key: '9c4e8c3d74888d794d747e048ab368ae4f9fce9f', part: "ncec" }, h("sp-theme", { key: 'fe7c297e3da3ec06c54b8c4eddce779e283a6f8c', theme: "spectrum", color: "dark", scale: "medium" }, h("div", { key: '1154b9e1271af9d613401f1958937a2dc87ad2e9', class: "nylas-cancelled-event-card", part: "ncec__card" }, h("div", { key: 'c1d5e51311db568bdfd14c45cdb17a341d1222ad', class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, h("calendar-cancel-icon", { key: '9c3f516a80498ff983fe17dd2fbc84d9ee0ac7b8' })), h("h3", { key: '82ed5d4165dbc590bb996569252a5661ac915d98', class: "nylas-cancelled-event-card__title", part: "ncec__title" }, "Your booking has been cancelled successfully!"), h("div", { key: '5a01351f61614bee349cb350395d00d61b43c574', class: "nylas-cancelled-event-card__description", part: "ncec__description" }, "A cancellation email has been sent to ", this.configSettings?.organizer?.name || 'the participants', "."), h("div", { key: 'c82b6b6260111bdecf664a475591cbfab6d4321e', class: "nylas-cancelled-event-card__cta" }, h("sp-button", { key: '34fdcee6945a44597a2084c3043aa3375cd560cb', variant: "secondary", treatment: "outline", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? 'Closing...' : 'Close'))))));
49
49
  }
50
50
  static get is() { return "nylas-cancelled-event-card"; }
51
51
  static get encapsulation() { return "shadow"; }
@@ -47,7 +47,7 @@ export class NylasNotification {
47
47
  this.notifications = this.notifications.filter(notif => notif.id !== id);
48
48
  }
49
49
  render() {
50
- return (h(Host, { key: 'ab83962fa679505585445e3baab12b31bf1abd00' }, h(Fragment, { key: '3f4c77b79718eb71600129910be78980a70c3022' }, this.notifications.map(notif => (h("div", { class: `notif ${notif.type}`, key: notif.id }, h("div", { class: "content" }, h("span", { class: `icon ${notif.type}` }, (notif.type === 'error' || notif.type === 'warning') && h("warning-icon", null)), h("span", { class: "message" }, h("span", { class: "title" }, notif.title), notif.description && h("span", { class: "description" }, notif.description))), h("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(notif.id) }, h("close-icon", null))))), h("slot", { key: '45286b7e48b19c7b76089ef2d661e9cd176b4a8f' }))));
50
+ return (h(Host, { key: '9011372a63b5b706177dedf93b14df8158e14e04' }, h(Fragment, { key: 'd06168682c50f2b5330f8c923ecaec19dfc44add' }, this.notifications.map(notif => (h("div", { class: `notif ${notif.type}`, key: notif.id }, h("div", { class: "content" }, h("span", { class: `icon ${notif.type}` }, (notif.type === 'error' || notif.type === 'warning') && h("warning-icon", null)), h("span", { class: "message" }, h("span", { class: "title" }, notif.title), notif.description && h("span", { class: "description" }, notif.description))), h("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(notif.id) }, h("close-icon", null))))), h("slot", { key: '6cfe1ecaea1c313ca1549d01b3b8c1627af0d8f2' }))));
51
51
  }
52
52
  static get is() { return "nylas-notification"; }
53
53
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class NylasAdditionalParticipants {
36
36
  }
37
37
  componentDidLoad() {
38
38
  debug('nylas-additional-participants', 'componentDidLoad');
39
- this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');
39
+ this.updateFormValue();
40
40
  }
41
41
  disconnectedCallback() {
42
42
  debug('nylas-additional-participants', 'disconnectedCallback');
@@ -46,34 +46,37 @@ export class NylasAdditionalParticipants {
46
46
  const index = event.detail.name;
47
47
  this.participants[index].email = event.detail.value;
48
48
  const participant = this.participantOptions?.find(participant => participant.email === event.detail.value);
49
+ this.participants[index].availability = participant ? { calendar_ids: ['primary'] } : undefined;
49
50
  this.participants[index].name = participant?.name || event.detail.value;
50
51
  this.participants = [...this.participants];
51
- this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');
52
+ this.updateFormValue();
52
53
  }
53
54
  onParticipantChange(event, index) {
54
55
  debug('nylas-additional-participants', 'onParticipantChange');
55
56
  this.participants[index].email = event.target.value;
56
- this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');
57
+ this.updateFormValue();
57
58
  }
58
59
  addParticipant() {
59
60
  debug('nylas-additional-participants', 'addParticipant');
60
- this.participants = [...this.participants, { name: '', email: '', is_organizer: false, availability: { calendar_ids: ['primary'] } }];
61
- this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');
61
+ this.participants = [...this.participants, { name: '', email: '', is_organizer: false }];
62
+ this.updateFormValue();
62
63
  }
63
64
  removeParticipant(index) {
64
65
  debug('nylas-additional-participants', 'removeParticipant');
65
66
  this.participants = this.participants.filter((_, i) => i !== index);
66
- this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');
67
+ this.updateFormValue();
67
68
  }
68
69
  validate(email, index) {
69
70
  debug('nylas-additional-participants', 'validate');
70
71
  const regex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
71
72
  const valid = regex.test(String(email).toLowerCase());
72
73
  this.participants[index].is_valid = valid;
73
- this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');
74
+ this.updateFormValue();
74
75
  }
75
- participantsWithouOrganizer() {
76
- return this.participants.filter(participant => !participant.is_organizer);
76
+ updateFormValue() {
77
+ debug('nylas-additional-participants', 'updateFormValue');
78
+ this.internals.setFormValue(JSON.stringify(this.participants), this.name);
79
+ this.valueChanged.emit({ value: JSON.stringify(this.participants), name: this.name });
77
80
  }
78
81
  getArrayDifference(array1, array2) {
79
82
  const filtered = array1.filter(participant1 => !array2.some(participant2 => participant1.email === participant2.email));
@@ -82,11 +85,11 @@ export class NylasAdditionalParticipants {
82
85
  });
83
86
  }
84
87
  render() {
85
- return (h(Host, { key: '5f2ab58dd16c4052b17111fa260d676c908bcf58' }, h("nylas-form-card", { key: 'a636c3ef694cc333b15830c35eb13fb51ff69ca0' }, h("h3", { key: '13425f0338b7b88746844c79104f008323bdcbf1', slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Additional participants"), h("p", { key: '7ebe90bb5ef933b7632c8b30aa9b1ccf8f08c6a6', slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, "Add anyone else who would be joining for this event."), h("div", { key: '3662713253e568cbf70b4d73e4eb883bb6c329a2', slot: "content", class: "nylas-additional-participants__content" }, h("div", { key: '577176dfd841875992a420e243be2905968452d5' }, this.participants.map((participant, index) => {
88
+ return (h(Host, { key: '67454437ca6e9771da4373e293b8b1d468c79680' }, h("nylas-form-card", { key: '844913ba1bca33b83b0d7c0a89323ca48f5ce1dd' }, h("h3", { key: 'bbdbf1e9addc3238a013697bff343a1065758928', slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Additional participants"), h("p", { key: '37520f9fcc4996b9635821a52ed5d9c0350af88f', slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, "Add anyone else who would be joining for this event."), h("div", { key: '76a8d8118f9012cced55357e4243b897ec41e385', slot: "content", class: "nylas-additional-participants__content" }, h("div", { key: 'bb5d6f6e7ebf486eb4c8395ff3ab971335d19750' }, this.participants.map((participant, index) => {
86
89
  return (h("div", { class: 'nylas-additional-participants__input_group', part: "nap__input_group" }, h("label", null, participant.is_organizer ? 'Organizer' : `Participant ${index}`), h("div", { part: "nap__input_wrapper", class: `nylas-additional-participants__input_wrapper ${participant.is_organizer && 'nylas-additional-participants__input_wrapper_organizer'} ${participant.is_valid === false && 'nylas-additional-participants__input_wrapper_invalid'}` }, h("div", { class: { 'nylas-additional-participants__input': true, 'organizer': participant.is_organizer }, part: "nap__input" }, participant.is_organizer ? (h("input", { type: "text", value: participant.email, onInput: e => {
87
90
  this.onParticipantChange(e, index);
88
- }, readOnly: participant.is_organizer, onBlur: () => this.validate(participant.email, index) })) : (h("input-dropdown", { name: `${index}`, inputValue: participant.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) })), !participant.is_organizer && (h("button", { onClick: () => this.removeParticipant(index), part: "nap__remove-participant" }, h("close-icon", null)))))));
89
- })), h("button", { key: '74f99ea0eb6a5a5873a7b5dbed5caa4bf557fa4e', class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, h("add-circle-icon", { key: '9d139a5ba18bdec17acaa1dc9d9d773d0a7b1a5d' }), " ", h("span", { key: '89778f530c53d8ffa55c7e3bb67bdd5b19c4f881' }, "Add ", this.participants.length > 1 ? 'another' : 'a', " participant"))))));
91
+ }, readOnly: participant.is_organizer, onBlur: () => this.validate(participant.email, index) })) : (h("input-dropdown", { name: `${index}`, filterable: true, inputValue: participant.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) })), !participant.is_organizer && (h("button", { onClick: () => this.removeParticipant(index), part: "nap__remove-participant" }, h("close-icon", null)))))));
92
+ })), h("button", { key: '14febbe15dc97b44304e98c14d7e084ea5126304', class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, h("add-circle-icon", { key: '8f60f39d5d3b3b4532a78eacb0d4bf907a8b7836' }), " ", h("span", { key: '8e2c9a49072d04ab571470c68c3277a76706e60e' }, "Add ", this.participants.length > 1 ? 'another' : 'a', " participant"))))));
90
93
  }
91
94
  static get is() { return "nylas-additional-participants"; }
92
95
  static get encapsulation() { return "shadow"; }
@@ -169,6 +172,24 @@ export class NylasAdditionalParticipants {
169
172
  "participantsValid": {}
170
173
  };
171
174
  }
175
+ static get events() {
176
+ return [{
177
+ "method": "valueChanged",
178
+ "name": "valueChanged",
179
+ "bubbles": true,
180
+ "cancelable": true,
181
+ "composed": true,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": "This event is fired when the selected participants change."
185
+ },
186
+ "complexType": {
187
+ "original": "{\n value: string;\n name: string;\n }",
188
+ "resolved": "{ value: string; name: string; }",
189
+ "references": {}
190
+ }
191
+ }];
192
+ }
172
193
  static get elementRef() { return "host"; }
173
194
  static get watchers() {
174
195
  return [{
@@ -1 +1 @@
1
- {"version":3,"file":"nylas-additional-participants.js","sourceRoot":"","sources":["../../../../src/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAqCzG,MAAM,OAAO,2BAA2B;;oBAEf,cAAc;;;4BAgBE,IAAI,CAAC,iBAAiB,IAAI,EAAE;iCAC7B,IAAI;;IAN1C,yBAAyB,CAAC,QAAgB;QACxC,KAAK,CAAC,+BAA+B,EAAE,2BAA2B,EAAE,QAAQ,CAAC,CAAC;QAC9E,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAID,iBAAiB;QACf,KAAK,CAAC,+BAA+B,EAAE,mBAAmB,CAAC,CAAC;IAC9D,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,+BAA+B,EAAE,mBAAmB,CAAC,CAAC;Q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mB;;wBAAC;;4BAAW,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG;2CAAoB,CAC1F,CACL,CACU,CACb,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AArDC;IANC,iBAAiB,CAAiH;QACjI,IAAI,EAAE,+BAA+B;QACrC,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,wCAAwC,EAAE,oBAAoB,CAAC,CAAC,CAAC;QACzF,YAAY,EAAE,EAAE;QAChB,iBAAiB,EAAE,IAAI;KACxB,CAAC;;;;yDAqDD","sourcesContent":["import { RegisterComponent } from '@/common/register-component';\nimport { NylasSchedulerConfigConnector } from '@/connector/nylas-scheduler-config-connector';\nimport { debug } from '@/utils/utils';\nimport { AttachInternals, Component, Host, Prop, State, Watch, h, Element, Listen } from '@stencil/core';\nimport { NylasSchedulerEditor } from '../nylas-scheduler-editor/nylas-scheduler-editor';\n\ntype Participant = {\n name?: string;\n email: string;\n is_valid?: boolean;\n is_organizer: boolean;\n availability?: Availability;\n booking?: Booking;\n};\ntype Availability = {\n calendar_ids: string[];\n};\ntype Booking = {\n calendar_id: string;\n};\n\n/**\n * The `nylas-additional-participants` component is a form input for adding additional participants to an event.\n *\n * @part nap__title - The title of the component.\n * @part nap__subtitle - The subtitle of the component.\n * @part nap__content - The content of the component.\n * @part nap__input_group - The input group of the component.\n * @part nap__input_wrapper - The input wrapper of the component.\n * @part nap__input - The input of the component.\n * @part nap__remove-participant - The remove participant button of the component.\n * @part nap__add-participant - The add participant button of the component.\n *\n */\n@Component({\n tag: 'nylas-additional-participants',\n styleUrl: 'nylas-additional-participants.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class NylasAdditionalParticipants {\n @Element() host!: HTMLNylasAdditionalParticipantsElement;\n @Prop() name: string = 'participants';\n @Prop() eventParticipants?: Participant[];\n @Prop() participantOptions?: Participant[];\n @AttachInternals() internals!: ElementInternals;\n\n /**\n * When a name prop is passed, stencil does not automatically set the name attribute on the host element.\n * Since this component is form-associated, the name attribute is required for form submission.\n * This is a workaround to ensure that the name attribute is set on the host element.\n */\n @Watch('name')\n elementNameChangedHandler(newValue: string) {\n debug('nylas-additional-participants', 'elementNameChangedHandler', newValue);\n this.host.setAttribute('name', newValue);\n }\n\n @State() participants: Participant[] = this.eventParticipants ?? [];\n @State() participantsValid: boolean = true;\n connectedCallback() {\n debug('nylas-additional-participants', 'connectedCallback');\n }\n\n componentWillLoad() {\n debug('nylas-additional-participants', 'componentWillLoad');\n this.host.setAttribute('name', this.name);\n }\n\n componentDidLoad() {\n debug('nylas-additional-participants', 'componentDidLoad');\n this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');\n }\n\n disconnectedCallback() {\n debug('nylas-additional-participants', 'disconnectedCallback');\n }\n\n @Listen('inputOptionChanged')\n onInputOptionChanged(event: CustomEvent<{ value: string; name: string }>) {\n debug('nylas-additional-participants', 'onInputOptionChanged');\n const index = event.detail.name;\n this.participants[index].email = event.detail.value;\n const participant = this.participantOptions?.find(participant => participant.email === event.detail.value);\n this.participants[index].name = participant?.name || event.detail.value;\n this.participants = [...this.participants];\n this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');\n }\n onParticipantChange(event, index) {\n debug('nylas-additional-participants', 'onParticipantChange');\n this.participants[index].email = event.target.value;\n this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');\n }\n addParticipant() {\n debug('nylas-additional-participants', 'addParticipant');\n this.participants = [...this.participants, { name: '', email: '', is_organizer: false, availability: { calendar_ids: ['primary'] } }];\n this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');\n }\n removeParticipant(index: number) {\n debug('nylas-additional-participants', 'removeParticipant');\n this.participants = this.participants.filter((_, i) => i !== index);\n this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');\n }\n validate(email, index) {\n debug('nylas-additional-participants', 'validate');\n const regex = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n const valid = regex.test(String(email).toLowerCase());\n this.participants[index].is_valid = valid;\n this.internals.setFormValue(JSON.stringify(this.participantsWithouOrganizer()), 'participants');\n }\n\n participantsWithouOrganizer() {\n return this.participants.filter(participant => !participant.is_organizer);\n }\n\n // Filter out the participants that are already added\n getArrayDifference(array1: Participant[], array2: Participant[]) {\n const filtered = array1.filter(participant1 => !array2.some(participant2 => participant1.email === participant2.email));\n return filtered.map(participant => {\n return { value: participant.email, label: participant.email };\n });\n }\n\n @RegisterComponent<NylasAdditionalParticipants, NylasSchedulerConfigConnector, Exclude<NylasSchedulerEditor['stores'], undefined>>({\n name: 'nylas-additional-participants',\n stateToProps: new Map([['schedulerConfig.additionalParticipants', 'participantOptions']]),\n eventToProps: {},\n fireRegisterEvent: true,\n })\n render() {\n return (\n <Host>\n <nylas-form-card>\n <h3 slot=\"header-title\" class=\"nylas-additional-participants__title\" part=\"nap__title\">\n Additional participants\n </h3>\n <p slot=\"header-subtitle\" class=\"nylas-additional-participants__subtitle\" part=\"nap__subtitle\">\n Add anyone else who would be joining for this event.\n </p>\n <div slot=\"content\" class=\"nylas-additional-participants__content\">\n <div>\n {this.participants.map((participant, index) => {\n return (\n <div class={'nylas-additional-participants__input_group'} part=\"nap__input_group\">\n <label>{participant.is_organizer ? 'Organizer' : `Participant ${index}`}</label>\n <div\n part=\"nap__input_wrapper\"\n class={`nylas-additional-participants__input_wrapper ${participant.is_organizer && 'nylas-additional-participants__input_wrapper_organizer'} ${participant.is_valid === false && 'nylas-additional-participants__input_wrapper_invalid'}`}\n >\n <div class={{ 'nylas-additional-participants__input': true, 'organizer': participant.is_organizer }} part=\"nap__input\">\n {participant.is_organizer ? (\n <input\n type=\"text\"\n value={participant.email}\n onInput={e => {\n this.onParticipantChange(e, index);\n }}\n readOnly={participant.is_organizer}\n onBlur={() => this.validate(participant.email, index)}\n />\n ) : (\n <input-dropdown name={`${index}`} inputValue={participant.email} options={this.getArrayDifference(this.participantOptions || [], this.participants)} />\n )}\n {!participant.is_organizer && (\n <button onClick={() => this.removeParticipant(index)} part=\"nap__remove-participant\">\n <close-icon />\n </button>\n )}\n </div>\n </div>\n </div>\n );\n })}\n </div>\n <button class=\"nylas-additional-participants__add\" part=\"nap__add-participant\" onClick={() => this.addParticipant()}>\n <add-circle-icon /> <span>Add {this.participants.length > 1 ? 'another' : 'a'} participant</span>\n </button>\n </div>\n </nylas-form-card>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"nylas-additional-participants.js","sourceRoot":"","sources":["../../../../src/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,EAAgB,MAAM,eAAe,CAAC;AAEvH,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAoCtC,MAAM,OAAO,2BAA2B;;oBAEf,cAAc;;;4BAwBE,IAAI,CAAC,iBAAiB,IAAI,EAAE;iCAC7B,IAAI;;IAN1C,yBAAyB,CAAC,QAAgB;QACxC,KAAK,CAAC,+BAA+B,EAAE,2BAA2B,EAAE,QAAQ,CAAC,CAAC;QAC9E,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAA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;wBACjH,yEAAmB;;wBAAC;;4BAAW,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG;2CAAoB,CAC1F,CACL,CACU,CACb,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AA1DC;IANC,iBAAiB,CAAiH;QACjI,IAAI,EAAE,+BAA+B;QACrC,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,wCAAwC,EAAE,oBAAoB,CAAC,CAAC,CAAC;QACzF,YAAY,EAAE,EAAE;QAChB,iBAAiB,EAAE,IAAI;KACxB,CAAC;;;;yDA0DD","sourcesContent":["import { RegisterComponent } from '@/common/register-component';\nimport { NylasSchedulerConfigConnector } from '@/connector/nylas-scheduler-config-connector';\nimport { debug } from '@/utils/utils';\nimport { AttachInternals, Component, Host, Prop, State, Watch, h, Element, Listen, EventEmitter } from '@stencil/core';\nimport { NylasSchedulerEditor } from '../nylas-scheduler-editor/nylas-scheduler-editor';\nimport { Event } from '@stencil/core';\n\ntype Participant = {\n name?: string;\n email: string;\n is_valid?: boolean;\n is_organizer: boolean;\n availability?: Availability;\n booking?: Booking;\n};\ntype Availability = {\n calendar_ids: string[];\n};\ntype Booking = {\n calendar_id: string;\n};\n\n/**\n * The `nylas-additional-participants` component is a form input for adding additional participants to an event.\n *\n * @part nap__title - The title of the component.\n * @part nap__subtitle - The subtitle of the component.\n * @part nap__content - The content of the component.\n * @part nap__input_group - The input group of the component.\n * @part nap__input_wrapper - The input wrapper of the component.\n * @part nap__input - The input of the component.\n * @part nap__remove-participant - The remove participant button of the component.\n * @part nap__add-participant - The add participant button of the component.\n *\n */\n@Component({\n tag: 'nylas-additional-participants',\n styleUrl: 'nylas-additional-participants.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class NylasAdditionalParticipants {\n @Element() host!: HTMLNylasAdditionalParticipantsElement;\n @Prop() name: string = 'participants';\n @Prop() eventParticipants?: Participant[];\n @Prop() participantOptions?: Participant[];\n @AttachInternals() internals!: ElementInternals;\n\n /**\n * This event is fired when the selected participants change.\n */\n @Event() valueChanged!: EventEmitter<{\n value: string;\n name: string;\n }>;\n\n /**\n * When a name prop is passed, stencil does not automatically set the name attribute on the host element.\n * Since this component is form-associated, the name attribute is required for form submission.\n * This is a workaround to ensure that the name attribute is set on the host element.\n */\n @Watch('name')\n elementNameChangedHandler(newValue: string) {\n debug('nylas-additional-participants', 'elementNameChangedHandler', newValue);\n this.host.setAttribute('name', newValue);\n }\n\n @State() participants: Participant[] = this.eventParticipants ?? [];\n @State() participantsValid: boolean = true;\n connectedCallback() {\n debug('nylas-additional-participants', 'connectedCallback');\n }\n\n componentWillLoad() {\n debug('nylas-additional-participants', 'componentWillLoad');\n this.host.setAttribute('name', this.name);\n }\n\n componentDidLoad() {\n debug('nylas-additional-participants', 'componentDidLoad');\n this.updateFormValue();\n }\n\n disconnectedCallback() {\n debug('nylas-additional-participants', 'disconnectedCallback');\n }\n\n @Listen('inputOptionChanged')\n onInputOptionChanged(event: CustomEvent<{ value: string; name: string }>) {\n debug('nylas-additional-participants', 'onInputOptionChanged');\n const index = event.detail.name;\n this.participants[index].email = event.detail.value;\n const participant = this.participantOptions?.find(participant => participant.email === event.detail.value);\n this.participants[index].availability = participant ? { calendar_ids: ['primary'] } : undefined;\n this.participants[index].name = participant?.name || event.detail.value;\n this.participants = [...this.participants];\n this.updateFormValue();\n }\n onParticipantChange(event, index) {\n debug('nylas-additional-participants', 'onParticipantChange');\n this.participants[index].email = event.target.value;\n this.updateFormValue();\n }\n addParticipant() {\n debug('nylas-additional-participants', 'addParticipant');\n this.participants = [...this.participants, { name: '', email: '', is_organizer: false }];\n this.updateFormValue();\n }\n removeParticipant(index: number) {\n debug('nylas-additional-participants', 'removeParticipant');\n this.participants = this.participants.filter((_, i) => i !== index);\n this.updateFormValue();\n }\n validate(email, index) {\n debug('nylas-additional-participants', 'validate');\n const regex = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n const valid = regex.test(String(email).toLowerCase());\n this.participants[index].is_valid = valid;\n this.updateFormValue();\n }\n\n updateFormValue() {\n debug('nylas-additional-participants', 'updateFormValue');\n this.internals.setFormValue(JSON.stringify(this.participants), this.name);\n this.valueChanged.emit({ value: JSON.stringify(this.participants), name: this.name });\n }\n\n // Filter out the participants that are already added\n getArrayDifference(array1: Participant[], array2: Participant[]) {\n const filtered = array1.filter(participant1 => !array2.some(participant2 => participant1.email === participant2.email));\n return filtered.map(participant => {\n return { value: participant.email, label: participant.email };\n });\n }\n\n @RegisterComponent<NylasAdditionalParticipants, NylasSchedulerConfigConnector, Exclude<NylasSchedulerEditor['stores'], undefined>>({\n name: 'nylas-additional-participants',\n stateToProps: new Map([['schedulerConfig.additionalParticipants', 'participantOptions']]),\n eventToProps: {},\n fireRegisterEvent: true,\n })\n render() {\n return (\n <Host>\n <nylas-form-card>\n <h3 slot=\"header-title\" class=\"nylas-additional-participants__title\" part=\"nap__title\">\n Additional participants\n </h3>\n <p slot=\"header-subtitle\" class=\"nylas-additional-participants__subtitle\" part=\"nap__subtitle\">\n Add anyone else who would be joining for this event.\n </p>\n <div slot=\"content\" class=\"nylas-additional-participants__content\">\n <div>\n {this.participants.map((participant, index) => {\n return (\n <div class={'nylas-additional-participants__input_group'} part=\"nap__input_group\">\n <label>{participant.is_organizer ? 'Organizer' : `Participant ${index}`}</label>\n <div\n part=\"nap__input_wrapper\"\n class={`nylas-additional-participants__input_wrapper ${participant.is_organizer && 'nylas-additional-participants__input_wrapper_organizer'} ${participant.is_valid === false && 'nylas-additional-participants__input_wrapper_invalid'}`}\n >\n <div class={{ 'nylas-additional-participants__input': true, 'organizer': participant.is_organizer }} part=\"nap__input\">\n {participant.is_organizer ? (\n <input\n type=\"text\"\n value={participant.email}\n onInput={e => {\n this.onParticipantChange(e, index);\n }}\n readOnly={participant.is_organizer}\n onBlur={() => this.validate(participant.email, index)}\n />\n ) : (\n <input-dropdown\n name={`${index}`}\n filterable={true}\n inputValue={participant.email}\n options={this.getArrayDifference(this.participantOptions || [], this.participants)}\n />\n )}\n {!participant.is_organizer && (\n <button onClick={() => this.removeParticipant(index)} part=\"nap__remove-participant\">\n <close-icon />\n </button>\n )}\n </div>\n </div>\n </div>\n );\n })}\n </div>\n <button class=\"nylas-additional-participants__add\" part=\"nap__add-participant\" onClick={() => this.addParticipant()}>\n <add-circle-icon /> <span>Add {this.participants.length > 1 ? 'another' : 'a'} participant</span>\n </button>\n </div>\n </nylas-form-card>\n </Host>\n );\n }\n}\n"]}
@@ -36,7 +36,6 @@
36
36
  }
37
37
  .nylas-availability-picker .header {
38
38
  padding: 1rem;
39
- border-bottom: 1px solid var(--nylas-base-200);
40
39
  }
41
40
  .nylas-availability-picker .header h3 {
42
41
  margin: 0;
@@ -59,6 +58,7 @@
59
58
  color: var(--nylas-base-900);
60
59
  font-size: 16px;
61
60
  font-family: var(--nylas-font-family);
61
+ border-top: 1px solid var(--nylas-base-200);
62
62
  }
63
63
  @media screen and (max-width: 504px) {
64
64
  .nylas-availability-picker .content {