@nylas/web-elements 1.1.5 → 1.1.6

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 (201) hide show
  1. package/dist/cdn/nylas-booked-event-card/nylas-booked-event-card.es.js +155 -145
  2. package/dist/cdn/nylas-booking-form/nylas-booking-form.es.js +80 -70
  3. package/dist/cdn/nylas-cancel-booking-form/nylas-cancel-booking-form.es.js +14 -4
  4. package/dist/cdn/nylas-cancelled-event-card/nylas-cancelled-event-card.es.js +14 -4
  5. package/dist/cdn/nylas-confirmed-event-card/nylas-confirmed-event-card.es.js +14 -4
  6. package/dist/cdn/nylas-date-picker/nylas-date-picker.es.js +86 -73
  7. package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +19 -12
  8. package/dist/cdn/nylas-feedback-form/nylas-feedback-form.es.js +1226 -1219
  9. package/dist/cdn/nylas-locale-switch/nylas-locale-switch.es.js +1233 -1220
  10. package/dist/cdn/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.es.js +11 -4
  11. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +19 -12
  12. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1694 -1584
  13. package/dist/cdn/nylas-selected-event-card/nylas-selected-event-card.es.js +14 -4
  14. package/dist/cdn/nylas-timeslot-picker/nylas-timeslot-picker.es.js +13 -3
  15. package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js +13 -3
  16. package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js.map +1 -1
  17. package/dist/cjs/google-logo-icon_4.cjs.entry.js +7 -6
  18. package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/cjs/nylas-booked-event-card.cjs.entry.js +15 -4
  21. package/dist/cjs/nylas-booked-event-card.cjs.entry.js.map +1 -1
  22. package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +142 -25
  23. package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js.map +1 -1
  24. package/dist/cjs/nylas-booking-form.cjs.entry.js +16 -3
  25. package/dist/cjs/nylas-booking-form.cjs.entry.js.map +1 -1
  26. package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +13 -2
  27. package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js.map +1 -1
  28. package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +13 -2
  29. package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js.map +1 -1
  30. package/dist/cjs/nylas-confirmed-event-card.cjs.entry.js +13 -2
  31. package/dist/cjs/nylas-confirmed-event-card.cjs.entry.js.map +1 -1
  32. package/dist/cjs/nylas-date-picker.cjs.entry.js +16 -2
  33. package/dist/cjs/nylas-date-picker.cjs.entry.js.map +1 -1
  34. package/dist/cjs/nylas-editor-tabs.cjs.entry.js +7 -6
  35. package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
  36. package/dist/cjs/nylas-feedback-form.cjs.entry.js +13 -3
  37. package/dist/cjs/nylas-feedback-form.cjs.entry.js.map +1 -1
  38. package/dist/cjs/nylas-locale-switch.cjs.entry.js +18 -4
  39. package/dist/cjs/nylas-locale-switch.cjs.entry.js.map +1 -1
  40. package/dist/cjs/nylas-organizer-confirmation-card.cjs.entry.js +12 -2
  41. package/dist/cjs/nylas-organizer-confirmation-card.cjs.entry.js.map +1 -1
  42. package/dist/cjs/nylas-scheduling.cjs.entry.js +11 -10
  43. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  44. package/dist/cjs/nylas-selected-event-card.cjs.entry.js +14 -3
  45. package/dist/cjs/nylas-selected-event-card.cjs.entry.js.map +1 -1
  46. package/dist/cjs/nylas-timeslot-picker.cjs.entry.js +12 -1
  47. package/dist/cjs/nylas-timeslot-picker.cjs.entry.js.map +1 -1
  48. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  49. package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.css +0 -23
  50. package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js +34 -3
  51. package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
  52. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.css +0 -23
  53. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +35 -2
  54. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
  55. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.css +0 -23
  56. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +32 -1
  57. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js.map +1 -1
  58. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.css +0 -23
  59. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +32 -1
  60. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js.map +1 -1
  61. package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.css +0 -23
  62. package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js +32 -1
  63. package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js.map +1 -1
  64. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.css +0 -23
  65. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +35 -1
  66. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js.map +1 -1
  67. package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.css +0 -23
  68. package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.js +36 -2
  69. package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.js.map +1 -1
  70. package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.css +0 -23
  71. package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.js +37 -3
  72. package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.js.map +1 -1
  73. package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.css +0 -23
  74. package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js +31 -1
  75. package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js.map +1 -1
  76. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +10 -9
  77. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
  78. package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.css +0 -23
  79. package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js +33 -2
  80. package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js.map +1 -1
  81. package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.css +0 -23
  82. package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js +31 -0
  83. package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js.map +1 -1
  84. package/dist/collection/components/scheduler/nylas-timeslot-picker/test/nylas-timeslot-picker.spec.js +7 -1
  85. package/dist/collection/components/scheduler/nylas-timeslot-picker/test/nylas-timeslot-picker.spec.js.map +1 -1
  86. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +5 -4
  87. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
  88. package/dist/components/nylas-booked-event-card2.js +16 -4
  89. package/dist/components/nylas-booked-event-card2.js.map +1 -1
  90. package/dist/components/nylas-booking-form2.js +17 -3
  91. package/dist/components/nylas-booking-form2.js.map +1 -1
  92. package/dist/components/nylas-cancel-booking-form2.js +14 -2
  93. package/dist/components/nylas-cancel-booking-form2.js.map +1 -1
  94. package/dist/components/nylas-cancelled-event-card2.js +14 -2
  95. package/dist/components/nylas-cancelled-event-card2.js.map +1 -1
  96. package/dist/components/nylas-confirmed-event-card2.js +14 -2
  97. package/dist/components/nylas-confirmed-event-card2.js.map +1 -1
  98. package/dist/components/nylas-date-picker2.js +18 -3
  99. package/dist/components/nylas-date-picker2.js.map +1 -1
  100. package/dist/components/nylas-editor-tabs2.js +7 -6
  101. package/dist/components/nylas-editor-tabs2.js.map +1 -1
  102. package/dist/components/nylas-feedback-form2.js +14 -3
  103. package/dist/components/nylas-feedback-form2.js.map +1 -1
  104. package/dist/components/nylas-locale-switch2.js +20 -5
  105. package/dist/components/nylas-locale-switch2.js.map +1 -1
  106. package/dist/components/nylas-organizer-confirmation-card2.js +13 -2
  107. package/dist/components/nylas-organizer-confirmation-card2.js.map +1 -1
  108. package/dist/components/nylas-scheduling.js +11 -10
  109. package/dist/components/nylas-scheduling.js.map +1 -1
  110. package/dist/components/nylas-selected-event-card2.js +15 -3
  111. package/dist/components/nylas-selected-event-card2.js.map +1 -1
  112. package/dist/components/nylas-timeslot-picker2.js +13 -1
  113. package/dist/components/nylas-timeslot-picker2.js.map +1 -1
  114. package/dist/esm/calendar-agenda-fill-icon_54.entry.js +13 -3
  115. package/dist/esm/calendar-agenda-fill-icon_54.entry.js.map +1 -1
  116. package/dist/esm/google-logo-icon_4.entry.js +7 -6
  117. package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
  118. package/dist/esm/loader.js +1 -1
  119. package/dist/esm/nylas-booked-event-card.entry.js +16 -5
  120. package/dist/esm/nylas-booked-event-card.entry.js.map +1 -1
  121. package/dist/esm/nylas-booked-event-card_12.entry.js +142 -25
  122. package/dist/esm/nylas-booked-event-card_12.entry.js.map +1 -1
  123. package/dist/esm/nylas-booking-form.entry.js +16 -3
  124. package/dist/esm/nylas-booking-form.entry.js.map +1 -1
  125. package/dist/esm/nylas-cancel-booking-form.entry.js +14 -3
  126. package/dist/esm/nylas-cancel-booking-form.entry.js.map +1 -1
  127. package/dist/esm/nylas-cancelled-event-card.entry.js +14 -3
  128. package/dist/esm/nylas-cancelled-event-card.entry.js.map +1 -1
  129. package/dist/esm/nylas-confirmed-event-card.entry.js +14 -3
  130. package/dist/esm/nylas-confirmed-event-card.entry.js.map +1 -1
  131. package/dist/esm/nylas-date-picker.entry.js +18 -4
  132. package/dist/esm/nylas-date-picker.entry.js.map +1 -1
  133. package/dist/esm/nylas-editor-tabs.entry.js +7 -6
  134. package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
  135. package/dist/esm/nylas-feedback-form.entry.js +13 -3
  136. package/dist/esm/nylas-feedback-form.entry.js.map +1 -1
  137. package/dist/esm/nylas-locale-switch.entry.js +20 -6
  138. package/dist/esm/nylas-locale-switch.entry.js.map +1 -1
  139. package/dist/esm/nylas-organizer-confirmation-card.entry.js +12 -2
  140. package/dist/esm/nylas-organizer-confirmation-card.entry.js.map +1 -1
  141. package/dist/esm/nylas-scheduling.entry.js +11 -10
  142. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  143. package/dist/esm/nylas-selected-event-card.entry.js +15 -4
  144. package/dist/esm/nylas-selected-event-card.entry.js.map +1 -1
  145. package/dist/esm/nylas-timeslot-picker.entry.js +13 -2
  146. package/dist/esm/nylas-timeslot-picker.entry.js.map +1 -1
  147. package/dist/esm/nylas-web-elements.js +1 -1
  148. package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +16 -5
  149. package/dist/nylas-web-elements/nylas-booked-event-card.entry.js.map +1 -1
  150. package/dist/nylas-web-elements/nylas-booking-form.entry.js +16 -3
  151. package/dist/nylas-web-elements/nylas-booking-form.entry.js.map +1 -1
  152. package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +14 -3
  153. package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js.map +1 -1
  154. package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +14 -3
  155. package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js.map +1 -1
  156. package/dist/nylas-web-elements/nylas-confirmed-event-card.entry.js +14 -3
  157. package/dist/nylas-web-elements/nylas-confirmed-event-card.entry.js.map +1 -1
  158. package/dist/nylas-web-elements/nylas-date-picker.entry.js +18 -4
  159. package/dist/nylas-web-elements/nylas-date-picker.entry.js.map +1 -1
  160. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +7 -6
  161. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
  162. package/dist/nylas-web-elements/nylas-feedback-form.entry.js +13 -3
  163. package/dist/nylas-web-elements/nylas-feedback-form.entry.js.map +1 -1
  164. package/dist/nylas-web-elements/nylas-locale-switch.entry.js +20 -6
  165. package/dist/nylas-web-elements/nylas-locale-switch.entry.js.map +1 -1
  166. package/dist/nylas-web-elements/nylas-organizer-confirmation-card.entry.js +12 -2
  167. package/dist/nylas-web-elements/nylas-organizer-confirmation-card.entry.js.map +1 -1
  168. package/dist/nylas-web-elements/nylas-scheduling.entry.js +11 -10
  169. package/dist/nylas-web-elements/nylas-scheduling.entry.js.map +1 -1
  170. package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +15 -4
  171. package/dist/nylas-web-elements/nylas-selected-event-card.entry.js.map +1 -1
  172. package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +13 -2
  173. package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js.map +1 -1
  174. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  175. package/dist/nylas-web-elements/p-2e7f0f20.entry.js +2 -0
  176. package/dist/nylas-web-elements/p-2e7f0f20.entry.js.map +1 -0
  177. package/dist/nylas-web-elements/{p-b5b568cf.entry.js → p-368190e9.entry.js} +2 -2
  178. package/dist/nylas-web-elements/p-368190e9.entry.js.map +1 -0
  179. package/dist/nylas-web-elements/{p-e790c71f.entry.js → p-9a8047b9.entry.js} +2 -2
  180. package/dist/nylas-web-elements/{p-e790c71f.entry.js.map → p-9a8047b9.entry.js.map} +1 -1
  181. package/dist/nylas-web-elements/{p-d586ff14.entry.js → p-eba3d197.entry.js} +3 -3
  182. package/dist/nylas-web-elements/p-eba3d197.entry.js.map +1 -0
  183. package/dist/types/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.d.ts +4 -1
  184. package/dist/types/components/scheduler/nylas-booking-form/nylas-booking-form.d.ts +5 -2
  185. package/dist/types/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.d.ts +4 -1
  186. package/dist/types/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.d.ts +4 -0
  187. package/dist/types/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.d.ts +4 -0
  188. package/dist/types/components/scheduler/nylas-date-picker/nylas-date-picker.d.ts +5 -0
  189. package/dist/types/components/scheduler/nylas-feedback-form/nylas-feedback-form.d.ts +3 -0
  190. package/dist/types/components/scheduler/nylas-locale-switch/nylas-locale-switch.d.ts +5 -0
  191. package/dist/types/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.d.ts +3 -1
  192. package/dist/types/components/scheduler/nylas-scheduling/nylas-scheduling.d.ts +1 -1
  193. package/dist/types/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.d.ts +4 -1
  194. package/dist/types/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.d.ts +4 -1
  195. package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +1 -1
  196. package/dist/types/components.d.ts +88 -0
  197. package/package.json +1 -1
  198. package/dist/nylas-web-elements/p-7a1d51ab.entry.js +0 -2
  199. package/dist/nylas-web-elements/p-7a1d51ab.entry.js.map +0 -1
  200. package/dist/nylas-web-elements/p-b5b568cf.entry.js.map +0 -1
  201. package/dist/nylas-web-elements/p-d586ff14.entry.js.map +0 -1
@@ -18905,7 +18905,7 @@ function JT() {
18905
18905
  }
18906
18906
  });
18907
18907
  }
18908
- const XT = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.card-wrapper{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-wrapper{width:100%;border-radius:0px}}.header{overflow-wrap:anywhere;display:flex;flex-direction:column;font-size:1rem;font-weight:400}.header h2{color:var(--nylas-base-900);font-size:24px;font-weight:600;text-align:left;margin:0}.description.title-desc{margin-bottom:2rem}.description.footer-desc{margin-top:2rem}.description.footer-desc a{color:var(--nylas-primary);text-decoration:none}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', QT = XT;
18908
+ const XT = ":host{display:block}.card-wrapper{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-wrapper{width:100%;border-radius:0px}}.header{overflow-wrap:anywhere;display:flex;flex-direction:column;font-size:1rem;font-weight:400}.header h2{color:var(--nylas-base-900);font-size:24px;font-weight:600;text-align:left;margin:0}.description.title-desc{margin-bottom:2rem}.description.footer-desc{margin-top:2rem}.description.footer-desc a{color:var(--nylas-primary);text-decoration:none}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}", QT = XT;
18909
18909
  var eA = function(n, e, t, i) {
18910
18910
  var r = arguments.length, a = r < 3 ? e : i === null ? i = Object.getOwnPropertyDescriptor(e, t) : i, o;
18911
18911
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -18922,7 +18922,7 @@ const H5 = j(class extends z {
18922
18922
  constructor() {
18923
18923
  super(), this.__registerHost(), this.__attachShadow(), this.feedbackModalClosed = Z(this, "feedbackModalClosed", 7), this.feedbackSubmitted = Z(this, "feedbackSubmitted", 7), this.triggerValidation = Z(this, "triggerValidation", 7), this.handleConfirmBookingButtonClicked = () => {
18924
18924
  this.triggerValidation.emit().defaultPrevented || this.feedbackSubmitted.emit({ feedback: this.feedbackMessage });
18925
- }, this.feedbackMessage = "";
18925
+ }, this.themeConfig = void 0, this.feedbackMessage = "";
18926
18926
  }
18927
18927
  connectedCallback() {
18928
18928
  }
@@ -18932,7 +18932,12 @@ const H5 = j(class extends z {
18932
18932
  b("[nylas-feedback-form] Component will load");
18933
18933
  }
18934
18934
  async componentDidLoad() {
18935
- b("[nylas-feedback-form] Component did load");
18935
+ b("[nylas-feedback-form] Component did load"), this.applyThemeConfig(this.themeConfig);
18936
+ }
18937
+ applyThemeConfig(e) {
18938
+ if (e)
18939
+ for (const [t, i] of Object.entries(e))
18940
+ this.host.style.setProperty(`${t}`, i);
18936
18941
  }
18937
18942
  handleFormInputChanged(e) {
18938
18943
  b("[nylas-feedback-form] Form input changed"), e.detail.value && (this.triggerValidation.emit(), e.detail.name === "feedback" && (this.feedbackMessage = e.detail.value));
@@ -18941,9 +18946,9 @@ const H5 = j(class extends z {
18941
18946
  e.preventDefault(), e.stopImmediatePropagation(), this.feedbackModalClosed.emit();
18942
18947
  }
18943
18948
  render() {
18944
- return c(oe, { key: "00514f43a6b2052ce2a4144917ccc5adc965a94a", part: "nfbf" }, c("div", { key: "4271697a749f74d3d62f611df6841dc4d7e4ef4d", class: "card-wrapper", part: "nfbfc__card" }, c("div", { key: "59271c12c04a4f78fac68534ec66b24ac9803784", class: "close-button" }, c("button-component", { key: "de7ced90803da24ff46d2dc30f7e925b6fb760a8", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, c("close-icon", { key: "3f64b2db3958bf082829310126566ef58ae54f46" }))), c("div", { key: "526d959d10a00d49d66d66fe3a56bce3a03893f4", class: "header" }, c("h2", { key: "699f00cca09366e19081e0972a76a2f67d471ecc", slot: "card-title", part: "nfbf__title" }, Cn.t("feedbackFormTitle"))), c("div", { key: "95062b4d3557eef49fac7246526f0d413acdd7ff", class: "description title-desc" }, c("p", { key: "6806a1ae323b2f67c5fcacbb0238df86a4f32bce" }, Cn.t("feedbackFormDescription"))), c("textarea-component", { key: "1135f11f19f5cca1f814812c606b39c3a828bf9b", label: Cn.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: Cn.t("feedbackMessagePlaceholder") }), c("div", { key: "388f7897c0eb2a9d87d25b98b49d3f60363e0108", class: "description footer-desc" }, c("p", { key: "ab9ba37f8e5533b8480c223ad668ffb91b95ab7e" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", c("a", { key: "c1a380ed74cb1c6081ca7c557e761eab7ae5ab9d", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), c("div", { key: "d8da33e015c718e6c8cf59b407eb7df7efaa26f9", class: {
18949
+ return c(oe, { key: "a2fdcdd71d0c4ff3902df64405da31a223eaf7d7", part: "nfbf" }, c("div", { key: "f9e8577b5357683928205b53ee81753a66a7e4ae", class: "card-wrapper", part: "nfbfc__card" }, c("div", { key: "d1bbb63d773ef30918549fe4a6737bf582ae0d06", class: "close-button" }, c("button-component", { key: "a418fa3fef1af84a1d504030e1bcafde4653e2ad", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, c("close-icon", { key: "cc39f114e75f5554417718701175d44844ffc4a0" }))), c("div", { key: "d425f232a67162d7865986403819a9aa80641891", class: "header" }, c("h2", { key: "3ee4ce9fa02a86831ff4a292320fe890bfb728bf", slot: "card-title", part: "nfbf__title" }, Cn.t("feedbackFormTitle"))), c("div", { key: "e190c2c7558cc3d292ecdd0efde36a5ba949406e", class: "description title-desc" }, c("p", { key: "bae5de83094598fa1794fac48f44d6385499183e" }, Cn.t("feedbackFormDescription"))), c("textarea-component", { key: "2dbcd70b5d4c8035a2cc7e852fdd6dfe23650d92", label: Cn.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: Cn.t("feedbackMessagePlaceholder") }), c("div", { key: "0970ad9b93148e325b85353e7ae79df9de057f10", class: "description footer-desc" }, c("p", { key: "3f20809d828a385b471916d5f53944d5438e0cff" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", c("a", { key: "bdb691d2575ba496607675f82bea362bfcb3dcdb", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), c("div", { key: "7cfd02b5827dfbd325f49e8c0b055873ae9ab32a", class: {
18945
18950
  footer: !0
18946
- } }, c("button-component", { key: "52f9c1a0a54907f9b83167387247fc3c979ad498", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${Cn.t("feedbackModalCloseButton")}`), c("button-component", { key: "819fc5952960c841c3a6b46af127699cd5f69c88", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${Cn.t("feedbackModalSubmitButton")}`))));
18951
+ } }, c("button-component", { key: "8d31999de17098830414f2944f52d94b59b903dd", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${Cn.t("feedbackModalCloseButton")}`), c("button-component", { key: "b802e92f4dba1467a54d90b730fc94161b41030c", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${Cn.t("feedbackModalSubmitButton")}`))));
18947
18952
  }
18948
18953
  get host() {
18949
18954
  return this;
@@ -18952,6 +18957,7 @@ const H5 = j(class extends z {
18952
18957
  return QT;
18953
18958
  }
18954
18959
  }, [1, "nylas-feedback-form", {
18960
+ themeConfig: [8, "theme-config"],
18955
18961
  feedbackMessage: [32]
18956
18962
  }, [[4, "nylasFormInputChanged", "handleFormInputChanged"]]]);
18957
18963
  eA([
@@ -18962,6 +18968,7 @@ eA([
18962
18968
  feedbackSubmitted: async (n, e) => {
18963
18969
  }
18964
18970
  },
18971
+ localPropsToProp: /* @__PURE__ */ new Map([["themeConfig", "themeConfig"]]),
18965
18972
  fireRegisterEvent: !0
18966
18973
  }),
18967
18974
  $s("design:type", Function),
@@ -27208,7 +27215,7 @@ const iu = j(class extends z {
27208
27215
  var t, i;
27209
27216
  b("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !_O() && TM({
27210
27217
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
27211
- release: "1.1.5",
27218
+ release: "1.1.6",
27212
27219
  integrations: (r) => [
27213
27220
  ...r.filter((a) => !1),
27214
27221
  qR({
@@ -27247,7 +27254,7 @@ const iu = j(class extends z {
27247
27254
  captureContext: {
27248
27255
  tags: {
27249
27256
  "nylas-web-element": "nylas-scheduler-editor",
27250
- "nylas-web-element-version": "1.1.5"
27257
+ "nylas-web-element-version": "1.1.6"
27251
27258
  },
27252
27259
  extra: {
27253
27260
  configId: (r = this.selectedConfiguration) == null ? void 0 : r.id,
@@ -27408,21 +27415,21 @@ const iu = j(class extends z {
27408
27415
  var t;
27409
27416
  return ((t = this.hideEditorTabs) == null ? void 0 : t.includes(e)) || !1;
27410
27417
  }
27411
- onFeedbackClick() {
27412
- this.showFeedbackModal = !0;
27418
+ onFeedbackClick(e) {
27419
+ e.preventDefault(), this.showFeedbackModal = !0;
27413
27420
  }
27414
27421
  render() {
27415
27422
  var e, t;
27416
- return b("[nylas-editor-tabs]", "render", this.formState), c(oe, { key: "979cb82af1a494ea69a8122420da0c794e7c1c14" }, c("form", { key: "a8aec5d884b9985898a0e2015a973c3f18c9993d", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (i) => this.formRef = i, noValidate: !0 }, this.mode === "app" ? c("div", { class: "form-contents" }, c("div", { class: "tabs" }, c("button", { name: ie.EventInfo, class: { tab: !0, active: this.activeTab == ie.EventInfo, hide: this.hideTab(ie.EventInfo) }, part: "editortab__event-info", onClick: (i) => this.setActiveTab(i, ie.EventInfo) }, c("calendar-info-icon", { width: "16", height: "16" }), "Event info"), c("button", { name: ie.Availability, class: { tab: !0, active: this.activeTab == ie.Availability, hide: this.hideTab(ie.Availability) }, part: "editortab__availability", onClick: (i) => this.setActiveTab(i, ie.Availability) }, c("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), c("button", { name: ie.Participants, class: { tab: !0, active: this.activeTab == ie.Participants, hide: this.hideTab(ie.Participants) }, part: "editortab__participants", onClick: (i) => this.setActiveTab(i, ie.Participants) }, c("people-icon", { width: "16", height: "16" }), "Participants"), c("button", { name: ie.BookingOptions, class: { tab: !0, active: this.activeTab == ie.BookingOptions, hide: this.hideTab(ie.BookingOptions) }, part: "editortab__booking-options", onClick: (i) => this.setActiveTab(i, ie.BookingOptions) }, c("flow-icon", { width: "16", height: "16" }), "Booking options"), c("button", { name: ie.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(ie.BookingForm) }, part: "editortab__booking-form", onClick: (i) => this.setActiveTab(i, ie.BookingForm) }, this.activeTab == ie.BookingForm ? c("calendar-agenda-fill-icon", { width: "16", height: "16" }) : c("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), c("button", { name: ie.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(ie.Communications) }, onClick: (i) => this.setActiveTab(i, ie.Communications) }, this.activeTab == ie.Communications ? c("envelope-fill-icon", { width: "16", height: "16" }) : c("envelope-icon", { width: "16", height: "16" }), "Communications"), c("button", { name: ie.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(ie.PageStyles) }, onClick: (i) => this.setActiveTab(i, ie.PageStyles) }, this.activeTab == ie.PageStyles ? c("paintbrush-fill-icon", { width: "16", height: "16" }) : c("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), c("div", { class: "tab-content" }, c(WR, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new" }))) : c("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, c("slot", null)), c("div", { key: "c013e06487a2675130df47566e7322bb8254fea0", class: "footer", part: "editor__footer" }, c("div", { key: "7ec0e476e014b7dcc5cb0177b86161743b09233f", class: "preview", part: "editor__footer-preview" }, this.enableUserFeedback && c("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, c("feedback-icon", null))), c("div", { key: "791187b91f7ce807d980fe79a551bb7f16725a8b", class: "buttons", part: "editor__footer-buttons" }, c("p", { key: "33e1dcbac0ccf06a7c9b15fe615e222e86d7d947", class: {
27423
+ return b("[nylas-editor-tabs]", "render", this.formState), c(oe, { key: "d38db7df3b55dcd9df5d23c06a2257e483e4f881" }, c("form", { key: "f75efd88f7a329288e77933ca218fa88e9dd8a87", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (i) => this.formRef = i, noValidate: !0 }, this.mode === "app" ? c("div", { class: "form-contents" }, c("div", { class: "tabs" }, c("button", { name: ie.EventInfo, class: { tab: !0, active: this.activeTab == ie.EventInfo, hide: this.hideTab(ie.EventInfo) }, part: "editortab__event-info", onClick: (i) => this.setActiveTab(i, ie.EventInfo) }, c("calendar-info-icon", { width: "16", height: "16" }), "Event info"), c("button", { name: ie.Availability, class: { tab: !0, active: this.activeTab == ie.Availability, hide: this.hideTab(ie.Availability) }, part: "editortab__availability", onClick: (i) => this.setActiveTab(i, ie.Availability) }, c("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), c("button", { name: ie.Participants, class: { tab: !0, active: this.activeTab == ie.Participants, hide: this.hideTab(ie.Participants) }, part: "editortab__participants", onClick: (i) => this.setActiveTab(i, ie.Participants) }, c("people-icon", { width: "16", height: "16" }), "Participants"), c("button", { name: ie.BookingOptions, class: { tab: !0, active: this.activeTab == ie.BookingOptions, hide: this.hideTab(ie.BookingOptions) }, part: "editortab__booking-options", onClick: (i) => this.setActiveTab(i, ie.BookingOptions) }, c("flow-icon", { width: "16", height: "16" }), "Booking options"), c("button", { name: ie.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(ie.BookingForm) }, part: "editortab__booking-form", onClick: (i) => this.setActiveTab(i, ie.BookingForm) }, this.activeTab == ie.BookingForm ? c("calendar-agenda-fill-icon", { width: "16", height: "16" }) : c("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), c("button", { name: ie.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(ie.Communications) }, onClick: (i) => this.setActiveTab(i, ie.Communications) }, this.activeTab == ie.Communications ? c("envelope-fill-icon", { width: "16", height: "16" }) : c("envelope-icon", { width: "16", height: "16" }), "Communications"), c("button", { name: ie.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(ie.PageStyles) }, onClick: (i) => this.setActiveTab(i, ie.PageStyles) }, this.activeTab == ie.PageStyles ? c("paintbrush-fill-icon", { width: "16", height: "16" }) : c("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), c("div", { class: "tab-content" }, c(WR, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new" }))) : c("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, c("slot", null)), c("div", { key: "33fa467828de45477cb14547e83cd91d3316d1de", class: "footer", part: "editor__footer" }, c("div", { key: "e94586ffcb339ed0134db7dba554add942b9658b", class: "preview", part: "editor__footer-preview" }, this.enableUserFeedback && c("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (i) => this.onFeedbackClick(i) }, c("feedback-icon", null))), c("div", { key: "ba9415c331d169876f6f64e048d295c494066fb0", class: "buttons", part: "editor__footer-buttons" }, c("p", { key: "b985139923dac06f300329c63100bb322a72e215", class: {
27417
27424
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
27418
27425
  "saved-changes": this.changesSaved,
27419
27426
  error: this.error !== "",
27420
27427
  "error-full-width": this.error !== "" && this.action === "create"
27421
27428
  } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && c("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (i) => {
27422
27429
  i.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(vC(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
27423
- }, variant: "basic" }, c("eye-icon", null)), c("button-component", { key: "35722d8b7c489c687ef63d7747a33204261b2870", type: "button", disabled: this.isLoading, clickHandler: (i) => {
27430
+ }, variant: "basic" }, c("eye-icon", null)), c("button-component", { key: "e8b658f3fe6dea039818fe7e5803c7876dcf516a", type: "button", disabled: this.isLoading, clickHandler: (i) => {
27424
27431
  i.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
27425
- }, variant: "basic", part: "editor__footer-cancel" }, "Back"), c("button-component", { key: "fabfca306aecb7a62212397bfe12e3fffce5fa8e", type: "submit", disabled: this.isLoading, part: "editor__footer-cta" }, this.isLoading ? c("span", null, "Saving", c("loading-icon", null), " ") : this.action === "create" ? "Create" : "Save changes")))), this.showFeedbackModal && c("nylas-feedback-form", null));
27432
+ }, variant: "basic", part: "editor__footer-cancel" }, "Back"), c("button-component", { key: "def3baeb44f02d4a168d4946fe46c158d9872d8a", type: "submit", disabled: this.isLoading, part: "editor__footer-cta" }, this.isLoading ? c("span", null, "Saving", c("loading-icon", null), " ") : this.action === "create" ? "Create" : "Save changes")))), this.showFeedbackModal && c("nylas-feedback-form", null));
27426
27433
  }
27427
27434
  get host() {
27428
27435
  return this;