@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
@@ -1,13 +1,15 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  import { ConfigSettings, NylasSchedulerBookingData } from '../../..';
3
3
  import { NylasEvent } from "../../../common/types";
4
- import { NylasSchedulerErrorResponse, Timeslot } from '@nylas/core';
4
+ import { NylasSchedulerErrorResponse, ThemeConfig, Timeslot } from '@nylas/core';
5
5
  export declare class NylasBookedEventCard {
6
+ private host;
6
7
  readonly eventInfo: NylasEvent;
7
8
  readonly rescheduleBookingId?: string;
8
9
  readonly bookingInfo?: NylasSchedulerBookingData;
9
10
  readonly configSettings?: ConfigSettings;
10
11
  readonly isLoading?: boolean;
12
+ readonly themeConfig?: any;
11
13
  readonly selectedTimezone: string;
12
14
  readonly selectedTimeslot: Timeslot;
13
15
  readonly selectedLanguage: string;
@@ -31,6 +33,7 @@ export declare class NylasBookedEventCard {
31
33
  disconnectedCallback(): void;
32
34
  componentWillLoad(): Promise<void>;
33
35
  componentDidLoad(): Promise<void>;
36
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
34
37
  private handleCancelBookingButtonClicked;
35
38
  private handleRescheduleButtonClicked;
36
39
  getPaticipantType: (type: string) => "" | "Host" | "You";
@@ -1,13 +1,14 @@
1
1
  import { Event, EventEmitter } from '../../../stencil-public-runtime';
2
2
  import type { ConfigSettings } from "../../../stores/scheduler-store";
3
3
  import type { NylasSchedulerBookingDataWithFlatFields, NylasSchedulerBookingData, NylasEvent } from "../../../common/types";
4
- import { Notification } from '@nylas/core';
4
+ import { Notification, ThemeConfig } from '@nylas/core';
5
5
  export declare class NylasBookingForm {
6
- readonly host: HTMLElement;
6
+ readonly host: HTMLNylasBookingFormElement;
7
7
  readonly isLoading?: boolean;
8
8
  readonly bookingInfo?: NylasSchedulerBookingData;
9
9
  readonly eventInfo?: NylasEvent;
10
10
  readonly configSettings?: ConfigSettings;
11
+ readonly themeConfig?: any;
11
12
  nameChanged: EventEmitter<string>;
12
13
  emailChanged: EventEmitter<string>;
13
14
  backButtonClicked: EventEmitter<boolean>;
@@ -31,7 +32,9 @@ export declare class NylasBookingForm {
31
32
  connectedCallback(): void;
32
33
  disconnectedCallback(): void;
33
34
  componentWillLoad(): void;
35
+ componentDidLoad(): void;
34
36
  bookingInfoChangedHandler(newValue: NylasSchedulerBookingData | undefined): void;
37
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
35
38
  changeName(name: string): void;
36
39
  changeEmail(email: string): void;
37
40
  resetGuestEmailError(guestIndex: number): void;
@@ -1,14 +1,16 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
- import { Notification, NylasSchedulerErrorResponse, Timeslot } from '@nylas/core';
2
+ import { Notification, NylasSchedulerErrorResponse, ThemeConfig, Timeslot } from '@nylas/core';
3
3
  import { ConfigSettings } from "../../../stores/scheduler-store";
4
4
  import { NylasEvent } from "../../../common/types";
5
5
  export declare class NylasCancelBookingForm {
6
+ private host;
6
7
  readonly cancelBookingId?: string;
7
8
  readonly rejectBookingId?: string;
8
9
  readonly selectedTimeslot: Timeslot;
9
10
  readonly configSettings?: ConfigSettings;
10
11
  readonly eventInfo?: NylasEvent;
11
12
  readonly isLoading?: boolean;
13
+ readonly themeConfig?: any;
12
14
  readonly goBackButtonClicked: EventEmitter<void>;
13
15
  readonly cancelBookingFormSubmitted: EventEmitter<{
14
16
  bookingId: string;
@@ -27,6 +29,7 @@ export declare class NylasCancelBookingForm {
27
29
  componentWillLoad(): Promise<void>;
28
30
  componentDidLoad(): Promise<void>;
29
31
  disconnectedCallback(): void;
32
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
30
33
  private handleGoBackClicked;
31
34
  private handleSubmitCancelBooking;
32
35
  handleNylasFormInputChanged(event: CustomEvent<{
@@ -1,8 +1,11 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  import { NylasEvent, NylasSchedulerErrorResponse } from '../../..';
3
3
  import { ConfigSettings } from "../../../stores/scheduler-store";
4
+ import { ThemeConfig } from '@nylas/core';
4
5
  export declare class NylasCancelledEventCard {
6
+ private host;
5
7
  readonly configSettings?: ConfigSettings;
8
+ readonly themeConfig?: any;
6
9
  readonly cancelledEventInfo: Partial<NylasEvent>;
7
10
  isClosing: boolean;
8
11
  readonly closeCancelEventCardClicked: EventEmitter<{
@@ -13,6 +16,7 @@ export declare class NylasCancelledEventCard {
13
16
  componentWillLoad(): Promise<void>;
14
17
  componentDidLoad(): Promise<void>;
15
18
  disconnectedCallback(): void;
19
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
16
20
  private handleCloseClicked;
17
21
  render(): any;
18
22
  }
@@ -1,8 +1,11 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  import { NylasEvent, NylasSchedulerErrorResponse } from '../../..';
3
3
  import { ConfigSettings } from "../../../stores/scheduler-store";
4
+ import { ThemeConfig } from '@nylas/core';
4
5
  export declare class NylasConfirmedEventCard {
6
+ private host;
5
7
  readonly configSettings?: ConfigSettings;
8
+ readonly themeConfig?: any;
6
9
  readonly confirmedEventInfo: Partial<NylasEvent>;
7
10
  isClosing: boolean;
8
11
  readonly closeConfirmEventCardClicked: EventEmitter<{
@@ -13,6 +16,7 @@ export declare class NylasConfirmedEventCard {
13
16
  componentWillLoad(): Promise<void>;
14
17
  componentDidLoad(): Promise<void>;
15
18
  disconnectedCallback(): void;
19
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
16
20
  private handleCloseClicked;
17
21
  render(): any;
18
22
  }
@@ -1,8 +1,11 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  import { ConfigSettings } from "../../../stores/scheduler-store";
3
+ import { ThemeConfig } from '@nylas/core';
3
4
  export declare class NylasDatePicker {
5
+ private host;
4
6
  selectableDates?: Date[];
5
7
  configSettings?: ConfigSettings;
8
+ readonly themeConfig?: any;
6
9
  selectedDate?: Date;
7
10
  selectedLanguage?: string;
8
11
  readonly isLoading?: boolean;
@@ -17,6 +20,8 @@ export declare class NylasDatePicker {
17
20
  connectedCallback(): void;
18
21
  disconnectedCallback(): void;
19
22
  componentWillLoad(): void;
23
+ componentDidLoad(): void;
24
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
20
25
  private getDates;
21
26
  private selectDate;
22
27
  private changeMonth;
@@ -1,6 +1,8 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
+ import { ThemeConfig } from '@nylas/core';
2
3
  export declare class NylasFeedbackForm {
3
4
  host: HTMLNylasFeedbackFormElement;
5
+ readonly themeConfig?: any;
4
6
  readonly feedbackModalClosed: EventEmitter<void>;
5
7
  readonly feedbackSubmitted: EventEmitter<{
6
8
  feedback: string;
@@ -11,6 +13,7 @@ export declare class NylasFeedbackForm {
11
13
  disconnectedCallback(): void;
12
14
  componentWillLoad(): Promise<void>;
13
15
  componentDidLoad(): Promise<void>;
16
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
14
17
  handleFormInputChanged(event: CustomEvent<{
15
18
  name: string;
16
19
  value: string;
@@ -1,5 +1,8 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
+ import { ThemeConfig } from '@nylas/core';
2
3
  export declare class NylasLocaleSwitch {
4
+ private host;
5
+ readonly themeConfig?: any;
3
6
  selectedTimezone: string;
4
7
  selectedLanguage: string;
5
8
  timezoneChanged: EventEmitter<string>;
@@ -7,6 +10,8 @@ export declare class NylasLocaleSwitch {
7
10
  connectedCallback(): void;
8
11
  disconnectedCallback(): void;
9
12
  componentWillLoad(): void;
13
+ componentDidLoad(): void;
14
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
10
15
  private changeTimezone;
11
16
  private changeLanguage;
12
17
  nylasFormDropdownChangedHandler(event: CustomEvent<{
@@ -1,10 +1,11 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  import { ConfigSettings } from '../../..';
3
- import { NylasSchedulerErrorResponse } from '@nylas/core';
3
+ import { NylasSchedulerErrorResponse, ThemeConfig } from '@nylas/core';
4
4
  export declare class NylasOrganizerConfirmationCard {
5
5
  host: HTMLNylasOrganizerConfirmationCardElement;
6
6
  readonly configSettings?: ConfigSettings;
7
7
  readonly isLoading?: boolean;
8
+ readonly themeConfig?: any;
8
9
  readonly organizerConfirmationBookingId?: string;
9
10
  readonly selectedLanguage: string;
10
11
  action: 'confirm' | 'reject' | null;
@@ -22,6 +23,7 @@ export declare class NylasOrganizerConfirmationCard {
22
23
  disconnectedCallback(): void;
23
24
  componentWillLoad(): Promise<void>;
24
25
  componentDidLoad(): Promise<void>;
26
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
25
27
  private handleConfirmBookingButtonClicked;
26
28
  private handleRejectBookingButtonClicked;
27
29
  resetAction(): Promise<void>;
@@ -84,7 +84,7 @@ export declare class NylasScheduling {
84
84
  private isTimeslotValid;
85
85
  private validateAvailableDaysInFuture;
86
86
  private applyThemeConfig;
87
- onFeedbackClick(): void;
87
+ onFeedbackClick(e: Event): void;
88
88
  redirectToCustomUrl(url: string): void;
89
89
  render(): any;
90
90
  }
@@ -1,5 +1,7 @@
1
- import type { Timeslot } from '@nylas/core';
1
+ import type { ThemeConfig, Timeslot } from '@nylas/core';
2
2
  export declare class NylasSelectedEventCard {
3
+ private host;
4
+ readonly themeConfig?: any;
3
5
  readonly selectedDate?: Date;
4
6
  readonly selectedTimeslot?: Timeslot;
5
7
  readonly selectedTimezone: string;
@@ -10,5 +12,6 @@ export declare class NylasSelectedEventCard {
10
12
  disconnectedCallback(): void;
11
13
  componentWillLoad(): Promise<void>;
12
14
  componentDidLoad(): Promise<void>;
15
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
13
16
  render(): any;
14
17
  }
@@ -1,9 +1,11 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  import { AvailabilityTimeslot } from "../../../stores/scheduler-store";
3
- import type { Timeslot } from '@nylas/core';
3
+ import type { ThemeConfig, Timeslot } from '@nylas/core';
4
4
  export declare class NylasTimeslotPicker {
5
+ private host;
5
6
  readonly availability?: AvailabilityTimeslot[];
6
7
  readonly isLoading?: boolean;
8
+ readonly themeConfig?: any;
7
9
  readonly selectedTimeslot?: Timeslot;
8
10
  readonly selectedTimezone: string;
9
11
  readonly selectedDate?: Date;
@@ -20,6 +22,7 @@ export declare class NylasTimeslotPicker {
20
22
  disconnectedCallback(): void;
21
23
  componentWillLoad(): Promise<void>;
22
24
  componentDidLoad(): Promise<void>;
25
+ applyThemeConfig(themeConfig?: ThemeConfig): void;
23
26
  private getTimeslotId;
24
27
  private onClickSelectTime;
25
28
  private handleConfirmedTimeslot;
@@ -183,7 +183,7 @@ export declare class NylasEditorTabs {
183
183
  checkForOrganizerConfirmationError: (config: any) => boolean;
184
184
  checkForBookingFormErrors: (config: any) => boolean;
185
185
  hideTab(tab: Tab): boolean;
186
- onFeedbackClick(): void;
186
+ onFeedbackClick(e: Event): void;
187
187
  render(): any;
188
188
  }
189
189
  export {};
@@ -448,6 +448,10 @@ export namespace Components {
448
448
  * The selected timezone.
449
449
  */
450
450
  "selectedTimezone": string;
451
+ /**
452
+ * @standalone The theme configuration.
453
+ */
454
+ "themeConfig"?: any;
451
455
  }
452
456
  /**
453
457
  * The `nylas-booking-calendar-picker` component is a UI component that displays the booking calendar picker.
@@ -541,6 +545,10 @@ export namespace Components {
541
545
  * @standalone The loading state.
542
546
  */
543
547
  "isLoading"?: boolean;
548
+ /**
549
+ * @standalone The theme configuration.
550
+ */
551
+ "themeConfig"?: any;
544
552
  }
545
553
  /**
546
554
  * The `nylas-booking-form-config` component is a form input for adding additional fields to the booking form.
@@ -620,6 +628,10 @@ export namespace Components {
620
628
  * The selected timeslot.
621
629
  */
622
630
  "selectedTimeslot": Timeslot;
631
+ /**
632
+ * @standalone The theme configuration.
633
+ */
634
+ "themeConfig"?: any;
623
635
  }
624
636
  /**
625
637
  * The `nylas-cancellation-policy` component is a form input for the cancellation policy message of an event.
@@ -650,6 +662,10 @@ export namespace Components {
650
662
  * @standalone The config settings for the scheduler.
651
663
  */
652
664
  "configSettings"?: ConfigSettings;
665
+ /**
666
+ * @standalone The theme configuration.
667
+ */
668
+ "themeConfig"?: any;
653
669
  }
654
670
  /**
655
671
  * The `nylas-confirmation-email` component is a UI component that allows users to set buffer time before and after an event.
@@ -688,6 +704,10 @@ export namespace Components {
688
704
  * The participant's name who booked the event / is logged in.
689
705
  */
690
706
  "confirmedEventInfo": Partial<NylasEvent1>;
707
+ /**
708
+ * @standalone The theme configuration.
709
+ */
710
+ "themeConfig"?: any;
691
711
  }
692
712
  /**
693
713
  * The `nylas-connected-calendars` component is a form input for selecting calendars to check availability for participants.
@@ -810,6 +830,10 @@ export namespace Components {
810
830
  * The selected language.
811
831
  */
812
832
  "selectedLanguage"?: string;
833
+ /**
834
+ * @standalone The theme configuration.
835
+ */
836
+ "themeConfig"?: any;
813
837
  }
814
838
  /**
815
839
  * The nylas-editor-tabs component provides the user interface for managing editor tabs within the scheduler editor.
@@ -970,6 +994,10 @@ export namespace Components {
970
994
  * The `nylas-feedback-form` component is a UI component that displays the booked event card.
971
995
  */
972
996
  interface NylasFeedbackForm {
997
+ /**
998
+ * @standalone The theme configuration.
999
+ */
1000
+ "themeConfig"?: any;
973
1001
  }
974
1002
  /**
975
1003
  * The `nylas-form-card` component is a card that can be used to display a form. It is a simple wrapper around a card with a header and content area.
@@ -1041,6 +1069,10 @@ export namespace Components {
1041
1069
  * The selected timezone.
1042
1070
  */
1043
1071
  "selectedTimezone": string;
1072
+ /**
1073
+ * @standalone The theme configuration.
1074
+ */
1075
+ "themeConfig"?: any;
1044
1076
  }
1045
1077
  interface NylasLogin {
1046
1078
  "buttonText": string;
@@ -1124,6 +1156,10 @@ export namespace Components {
1124
1156
  * The selected language.
1125
1157
  */
1126
1158
  "selectedLanguage": string;
1159
+ /**
1160
+ * @standalone The theme configuration.
1161
+ */
1162
+ "themeConfig"?: any;
1127
1163
  }
1128
1164
  /**
1129
1165
  * The `nylas-page-name` component is a UI component that allows users to add a custom page name which will appear in the top left corner of the date picker.
@@ -1473,6 +1509,10 @@ export namespace Components {
1473
1509
  * The selected timezone.
1474
1510
  */
1475
1511
  "selectedTimezone": string;
1512
+ /**
1513
+ * @standalone The theme configuration.
1514
+ */
1515
+ "themeConfig"?: any;
1476
1516
  }
1477
1517
  /**
1478
1518
  * The `nylas-time-window-picker` component is a time picker that can be used to select a time.
@@ -1545,6 +1585,10 @@ export namespace Components {
1545
1585
  * The selected timezone.
1546
1586
  */
1547
1587
  "selectedTimezone": string;
1588
+ /**
1589
+ * @standalone The theme configuration.
1590
+ */
1591
+ "themeConfig"?: any;
1548
1592
  }
1549
1593
  interface PaintbrushFillIcon {
1550
1594
  "height": string;
@@ -4475,6 +4519,10 @@ declare namespace LocalJSX {
4475
4519
  * The selected timezone.
4476
4520
  */
4477
4521
  "selectedTimezone"?: string;
4522
+ /**
4523
+ * @standalone The theme configuration.
4524
+ */
4525
+ "themeConfig"?: any;
4478
4526
  }
4479
4527
  /**
4480
4528
  * The `nylas-booking-calendar-picker` component is a UI component that displays the booking calendar picker.
@@ -4616,6 +4664,10 @@ declare namespace LocalJSX {
4616
4664
  * This event is fired when the name is changed.
4617
4665
  */
4618
4666
  "onNameChanged"?: (event: NylasBookingFormCustomEvent<string>) => void;
4667
+ /**
4668
+ * @standalone The theme configuration.
4669
+ */
4670
+ "themeConfig"?: any;
4619
4671
  }
4620
4672
  /**
4621
4673
  * The `nylas-booking-form-config` component is a form input for adding additional fields to the booking form.
@@ -4741,6 +4793,10 @@ declare namespace LocalJSX {
4741
4793
  * The selected timeslot.
4742
4794
  */
4743
4795
  "selectedTimeslot": Timeslot;
4796
+ /**
4797
+ * @standalone The theme configuration.
4798
+ */
4799
+ "themeConfig"?: any;
4744
4800
  }
4745
4801
  /**
4746
4802
  * The `nylas-cancellation-policy` component is a form input for the cancellation policy message of an event.
@@ -4786,6 +4842,10 @@ declare namespace LocalJSX {
4786
4842
  * This event is fired when the close button is clicked on the cancelled event card.
4787
4843
  */
4788
4844
  "onCloseCancelEventCardClicked"?: (event: NylasCancelledEventCardCustomEvent<{ errorHandler?: (error: NylasSchedulerErrorResponse1) => void }>) => void;
4845
+ /**
4846
+ * @standalone The theme configuration.
4847
+ */
4848
+ "themeConfig"?: any;
4789
4849
  }
4790
4850
  /**
4791
4851
  * The `nylas-confirmation-email` component is a UI component that allows users to set buffer time before and after an event.
@@ -4840,6 +4900,10 @@ declare namespace LocalJSX {
4840
4900
  * This event is fired when an error occurs.
4841
4901
  */
4842
4902
  "onConfirmedEventCardError"?: (event: NylasConfirmedEventCardCustomEvent<NylasSchedulerErrorResponse1>) => void;
4903
+ /**
4904
+ * @standalone The theme configuration.
4905
+ */
4906
+ "themeConfig"?: any;
4843
4907
  }
4844
4908
  /**
4845
4909
  * The `nylas-connected-calendars` component is a form input for selecting calendars to check availability for participants.
@@ -4993,6 +5057,10 @@ declare namespace LocalJSX {
4993
5057
  * The selected language.
4994
5058
  */
4995
5059
  "selectedLanguage"?: string;
5060
+ /**
5061
+ * @standalone The theme configuration.
5062
+ */
5063
+ "themeConfig"?: any;
4996
5064
  }
4997
5065
  /**
4998
5066
  * The nylas-editor-tabs component provides the user interface for managing editor tabs within the scheduler editor.
@@ -5213,6 +5281,10 @@ declare namespace LocalJSX {
5213
5281
  * This is an internal event that is used to trigger validation on the form.
5214
5282
  */
5215
5283
  "onTriggerValidation"?: (event: NylasFeedbackFormCustomEvent<void>) => void;
5284
+ /**
5285
+ * @standalone The theme configuration.
5286
+ */
5287
+ "themeConfig"?: any;
5216
5288
  }
5217
5289
  /**
5218
5290
  * The `nylas-form-card` component is a card that can be used to display a form. It is a simple wrapper around a card with a header and content area.
@@ -5321,6 +5393,10 @@ declare namespace LocalJSX {
5321
5393
  * The selected timezone.
5322
5394
  */
5323
5395
  "selectedTimezone"?: string;
5396
+ /**
5397
+ * @standalone The theme configuration.
5398
+ */
5399
+ "themeConfig"?: any;
5324
5400
  }
5325
5401
  interface NylasLogin {
5326
5402
  "buttonText"?: string;
@@ -5434,6 +5510,10 @@ declare namespace LocalJSX {
5434
5510
  * The selected language.
5435
5511
  */
5436
5512
  "selectedLanguage"?: string;
5513
+ /**
5514
+ * @standalone The theme configuration.
5515
+ */
5516
+ "themeConfig"?: any;
5437
5517
  }
5438
5518
  /**
5439
5519
  * The `nylas-page-name` component is a UI component that allows users to add a custom page name which will appear in the top left corner of the date picker.
@@ -5840,6 +5920,10 @@ declare namespace LocalJSX {
5840
5920
  * The selected timezone.
5841
5921
  */
5842
5922
  "selectedTimezone"?: string;
5923
+ /**
5924
+ * @standalone The theme configuration.
5925
+ */
5926
+ "themeConfig"?: any;
5843
5927
  }
5844
5928
  /**
5845
5929
  * The `nylas-time-window-picker` component is a time picker that can be used to select a time.
@@ -5941,6 +6025,10 @@ declare namespace LocalJSX {
5941
6025
  * The selected timezone.
5942
6026
  */
5943
6027
  "selectedTimezone"?: string;
6028
+ /**
6029
+ * @standalone The theme configuration.
6030
+ */
6031
+ "themeConfig"?: any;
5944
6032
  }
5945
6033
  interface PaintbrushFillIcon {
5946
6034
  "height"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nylas/web-elements",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Nylas Web Elements",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",